Commit Graph
2 Commits
Author SHA1 Message Date
Vasco Schiavo 6dcc9f5b3e refactor: finish the microagent→skill rename in the frontend (#16672) 2026-08-18 11:03:26 +02:00
7d954a9f0f Remove obsolete V1 terminology (#71)
* Remove obsolete V1 terminology

Renames V1-labeled agent-server modules, types, hooks, and component paths
to neutral agent-server/conversation terminology. Drops the residual frontend
`v1_enabled` setting branching while preserving true external/API-version
contracts (e.g. `/api/v1` endpoint paths and provider URL versions).

Fixes #70.

Co-authored-by: openhands <openhands@all-hands.dev>

* Remove legacy V0 frontend code

Drops the V0 chat renderers, event-content helpers, V0 type aliases,
socket.io subscription/mocking infrastructure, V0-only hooks/tests, and
the residual V0/V1 commentary that the previous "Remove obsolete V1
terminology" commit left behind.

Resolved on top of the Phase-1 OSS cleanup that landed on main: kept
the agent-server-aligned settings/secrets services, mocks, and
WebClientFeatureFlags shape.

Co-authored-by: openhands <openhands@all-hands.dev>

* Merge remote-tracking branch 'origin/main' into openhands/remove-v1-terminology

Resolved conflicts:
- src/api/agent-server-adapter.ts: kept ExecutionStatus rename + main's
  getEffectiveLocalBackend usage.
- src/api/conversation-service/agent-server-conversation-service.api.ts
  and .types.ts: kept ConversationWorkspace rename + sandbox_id field
  from main, merged main's cloud branching with our renamed types.
- src/api/event-service/event-service.api.ts: kept agent-server import
  path + main's added cloud-proxy imports.
- src/api/git-service/agent-server-git-service.api.ts: kept renamed
  mapAnyGitStatusToClientStatus + class AgentServerGitService, renamed
  V1GitChange to AgentServerGitChange.
- src/components/features/chat/components/chat-input-actions.tsx: kept
  renamed pause/resume hooks + main's useActiveBackend import.
- src/hooks/mutation/conversation-mutation-utils.ts: merged renamed
  pauseConversation with main's cloud sandbox branch.
- src/hooks/mutation/use-new-conversation-command.ts: kept renamed
  AgentServerConversationService usage with main's added args.
- src/hooks/query/use-conversation-history.ts: kept renamed searchEvents
  with main's added forwarding params.
- src/hooks/query/use-paginated-conversations.ts: kept renamed types +
  main's useActiveBackend.
- src/hooks/query/use-unified-vscode-url.ts: kept renamed
  AgentServerConversationService.

Also propagated V1 -> agent-server / Conversation renames into files
that came from main:
- Cloud service file imports updated to agent-server-conversation-service
  paths and renamed types (V1AppConversation* -> AppConversation*,
  V1ExecutionStatus -> ExecutionStatus, V1RuntimeConversationInfo ->
  RuntimeConversationInfo, V1ConversationWorkspace -> ConversationWorkspace,
  V1Messages -> ConversationMessages).
- pauseV1Conversation -> pauseConversation, fetchV1ConversationData ->
  fetchConversationData, searchEventsV1 -> searchEvents,
  V1ConversationService -> AgentServerConversationService.
- Dropped v1_task_id / is_v1 fields on CreateConversationResponse;
  use the existing task_id field.

Verified locally: npm run typecheck, npm test (1479 passed, 12 skipped),
and npm run build all pass.

Co-authored-by: openhands <openhands@all-hands.dev>

* Merge origin/main into openhands/remove-v1-terminology

Resolved merge conflicts from main, including:
- Incoming cloud backend support (#145), automations, ACP tool events
- Renamed V1 references in merged cloud service files
- Fixed isV1Event → isAgentServerEvent rename and removed dead V0 type guard
- Fixed V1ConfirmationButtons → ConversationConfirmationButtons reference
- Fixed broken relative import path in generic-event-message-wrapper
- Renamed pauseV1Conversation → pauseConversation in cloud test
- Added { ref: "HEAD" } to agent-server-git-service calls to match test expectations

Verified:
- npm run typecheck ✅
- npm test ✅ (1572 passed)
- npm run build ✅

Co-authored-by: openhands <openhands@all-hands.dev>

---------

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
Co-authored-by: hieptl <hieptl.developer@gmail.com>
2026-05-09 00:37:03 +07:00