chore: remove orphaned legacy modules left over from the frontend port#1227
chore: remove orphaned legacy modules left over from the frontend port#1227hieptl wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Mock-LLM E2E Tests42/42 passed Commit:
Posted by the Mock-LLM E2E workflow · results are deterministic (scripted LLM responses) |
🔶 Mock-LLM Docker E2E Test Results37/42 passed · 5 skipped Commit:
Posted by the Mock-LLM E2E workflow · results are deterministic (scripted LLM responses) |
📸 Snapshot Test Report✅ All snapshots match the main branch baselines.
✅ Unchanged snapshots (73)
Generated by the Snapshot Tests workflow. This comment was created by an AI agent (OpenHands) on behalf of the repo maintainers. |
Why
Description:
The April 2026 "Port OpenHands frontend to direct agent_server integration" commit (
6f248b1e) carried over several modules from the upstream OpenHands frontend that were never wired into this app. They have had zero importers since the port (verified viagit grepon module paths and every exported symbol, including camelCase forms and barrel re-export chains). None are part of the published library API (src/index.ts→src/lib/index.tsand the sevenexports-map barrels do not reference them).One of them (
has-advanced-settings-set.ts) is imported only by its own unit test — the test exercises code no product path can reach, so both are removed together.Scope (delete 9 files, ~316 LOC):
src/utils/download-trajectory.tssrc/utils/download-json.tsdownload-trajectory.tssrc/utils/has-advanced-settings-set.ts__tests__/utils/has-advanced-settings-set.test.tssrc/utils/mutate-with-toast.tssrc/services/terminal-service.tsgetTerminalCommandhelpersrc/types/config-type.tsxArgConfigType/SupportedSettingssrc/types/response-type.tsxSocketMessageunionsrc/types/tab-option.tsxTabOptionenum (live tabs use a different mechanism)Acceptance Criteria:
npm run lintpasses (typecheck + eslint + prettier).npm testpasses with no new tests written.git grep -n "utils/download-trajectory\|utils/download-json\|utils/has-advanced-settings-set\|utils/mutate-with-toast\|services/terminal-service\|types/config-type\|types/response-type\|types/tab-option"returns no hits.Out of scope / Notes:
downloadTrajectorygrep hits are expected and unrelated —FileClient.downloadTrajectory(from@openhands/typescript-client, called insrc/api/conversation-service/agent-server-conversation-service.api.ts) and thedownload-trajectory-buttontestIds are the live trajectory-download feature. Only the dead local utilsrc/utils/download-trajectory.tsis removed.mutate-with-toast.tsimportscustom-toast-handlers, which stays (59 live consumers).terminal-service.tsimportstypes/action-type, which stays (3 other live consumers).Summary
Removes nine modules (~316 LOC) that were carried over in the April 2026 OpenHands-frontend port (
6f248b1e) but never wired into this app. Every file has had zero importers since the port — verified by path-grep, symbol-grep (camelCase + kebab-case), and barrel re-export chain analysis against the published library API.Changes
src/utils/download-trajectory.ts+src/utils/download-json.ts(the latter's only consumer was the former)src/utils/has-advanced-settings-set.ts+__tests__/utils/has-advanced-settings-set.test.ts(helper was reachable only from its own test)src/utils/mutate-with-toast.ts,src/services/terminal-service.tssrc/types/config-type.tsx,src/types/response-type.tsx,src/types/tab-option.tsxVerification
npm run lint✅ (typegen + tsc + eslint + prettier — all clean)npm test✅ — 402 test files passed | 2 skipped, 3007 tests passed | 12 skipped | 9 todo, 0 failuresRisk
None identified. Pure file deletions; no shared files edited; not in the library
exportssurface. Reviewer note:downloadTrajectorystill greps in the codebase — those hits are the liveFileClient.downloadTrajectory(typescript-client) anddownload-trajectory-buttontestIds, unrelated to the deleted util.Rollback
Revert this single commit; no other unit depends on it.
Issue Number
Resolves #1226
Type
🐳 Docker images for this PR
• GHCR package: https://github.com/OpenHands/agent-canvas/pkgs/container/agent-canvas
ghcr.io/openhands/agent-canvasghcr.io/openhands/agent-server:1.26.0-pythonopenhands-automation==1.0.0a66e2bec858bcf4bda486a57b87b87a98fb4a02ac3Pull (multi-arch manifest)
# Multi-arch manifest — Docker automatically pulls the correct architecture docker pull ghcr.io/openhands/agent-canvas:sha-6e2bec8Run
All tags pushed for this build
About Multi-Architecture Support
sha-6e2bec8) is a multi-arch manifest supporting both amd64 and arm64sha-6e2bec8-amd64) are also available if needed