Skip to content

Port OpenCode restore/activity residual subset#353

Open
danshapiro wants to merge 3 commits into
mainfrom
replacement/opencode-restore-activity-main-20260518
Open

Port OpenCode restore/activity residual subset#353
danshapiro wants to merge 3 commits into
mainfrom
replacement/opencode-restore-activity-main-20260518

Conversation

@danshapiro
Copy link
Copy Markdown
Owner

Summary

  • Ports the remaining clean OpenCode/restore/activity residual from stale PR Stabilize dev green and canonical agent recovery #342 onto origin/main.
  • Preserves OpenCode resume model identity by not passing default or inferred model args when resuming an existing OpenCode session.
  • Allows restored OpenCode viewport hydration to request full replay instead of applying the generic 128 KiB cap.
  • Keeps focused test cleanup for canonical session-id shapes and real-provider test routing/harness stability.

Source content

Preserved:

  • 035a6949 -> e6c2cf33: canonical session ids in focus/history tests.
  • ec021780 -> c57a9c33: OpenCode resume model identity plus related real-provider harness/server-suite routing.
  • fdcc0bfd -> 15c3f4dc: OpenCode viewport hydration replay should not be capped.

Intentionally omitted as already covered elsewhere:

Dependencies and overlap

Verification

  • git diff --check origin/main..HEAD
  • FRESHELL_TEST_SUMMARY="task12 opencode residual client focused" npm run test:vitest -- test/unit/vite-config.test.ts test/unit/client/components/TerminalView.lifecycle.test.tsx test/e2e/sidebar-click-opens-pane.test.tsx --run passed: 87 tests.
  • npm run typecheck:client passed.
  • npm run build:client passed with existing Vite chunk-size/dynamic-import warnings.

Blocked on current origin/main baseline:

  • FRESHELL_TEST_SUMMARY="task12 opencode residual server focused" npm run test:vitest -- test/unit/server/terminal-registry.test.ts test/unit/server/run-standard-tests.test.ts --run did not execute tests because server global setup runs npm run build:server, which fails in unchanged server/mcp/freshell-tool.ts at lines 73 and 472.
  • npm run typecheck:server fails on the same unchanged server/mcp/freshell-tool.ts parse errors.

Real provider contract tests were not run; they exercise installed provider CLIs and external provider configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant