Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Users moving to StepCode currently need to manually copy context from other
coding clients. Local history should be discoverable, reviewable and importable
without running the source agent or making a model request.
Changes
discovery, compatibility preview, destination mapping and import jobs.
even when an active source continues writing.
persist job outcomes and support cancellation between sessions.
failed or unknown tool outcomes in continuation context.
larger than 64 KiB.
Behavior and compatibility
This migrates history, not source processes, credentials, approvals, filesystem
checkpoints or encrypted reasoning. Historical tools remain evidence and are
not replayed. Imported model selection and usage do not become native state.
The Web host exposes authenticated migration endpoints backed by coding-agent.
The shared Web client also supplies the Desktop UI. Existing native sessions
are not rewritten. Identical reviewed source snapshots are skipped; newly
reviewed changed snapshots create separate copies.
Previews expire after 15 minutes or host restart and may be evicted under the
bounded cache. Expired previews require another review. Unsupported content and
missing attachments produce compatibility warnings.
Validation
Windows local validation:
packages/coding-agent:pnpm exec vitest --run test/session-import.test.ts test/session-manager/build-context.test.ts test/session-manager/read-session-branch.test.ts test/step-usage-lifecycle.test.ts test/compaction-serialization.test.ts test/context-projection.test.tspassed: 92 tests across 6 files.
pnpm --filter @step-harness/coding-agent build:unbundledpassed.pnpm run checkpassed, including type/boundary checks, 287 Web testswith 9 intentional skips, built-host runtime smoke and browser bundle smoke.
apps/web:node --test --test-name-pattern="session migration" test/e2e/web.e2e.mjspassed: 1 Chromium end-to-end test, including active-source snapshot changes
and narrow viewport layout.
failed historical tool evidence reach the request without replaying old tools.
git diff --checkpassed../test.shwas attempted but stopped in its prerequisiteoffline build on Windows:
scripts/build-coding-agent-bundle.mjsfailed withspawnSync npm ENOENT. The isolated full test suite did not start.Limitations
above; focused suites are not a substitute for the full pre-submission gate.
Claude Code history. Migration is not a lossless source-state backup.
automatically as part of acceptance.