Skip to content

fix(agent): retain model context boundaries in imported history - #6737

Merged
M4n5ter merged 1 commit into
rust-previewfrom
fix/offline-legacy-history-migration
Nov 10, 2026
Merged

M4n5ter merged 1 commit into
rust-previewfrom
fix/offline-legacy-history-migration

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Summary

Imported history can now retain the full visible conversation while model replay starts at its last saved summary. The boundary is explicit, includes the summary itself, survives archive export/import, and is retained or cleared when taking a history prefix. Ordinary Context messages keep their existing meaning. The summary does not appear as a conversation message or sidebar preview.

Refs #6713.

Migration

Historical sources that specify a model-context boundary require this runtime change. Existing data is converted offline using the migration gist; no legacy execution decoder or reconstructed live permissions are added.

Verification

  • Focused behavior test passed: full history remains readable; model pagination starts inclusively at the summary; ordinary Context messages retain earlier history; archive export/import preserves the boundary; invalid boundary roles are rejected.
  • External migration helper builds successfully.
  • Native check is blocked by existing maka-mcp/reqwest API errors.

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: Codex — implementation and validation.

Checklist

  • Tests cover the change and fail without it
  • Format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

@M4n5ter
M4n5ter marked this pull request as ready for review November 10, 2026 06:23
@M4n5ter
M4n5ter merged commit a3f80ff into rust-preview Nov 10, 2026
6 of 9 checks passed
@M4n5ter
M4n5ter deleted the fix/offline-legacy-history-migration branch November 10, 2026 06:24
M4n5ter added a commit that referenced this pull request Nov 10, 2026
Use the standard ASF block header in the two #6737 agent-state files so the
license audit recognizes them.

Keep a single "plugin VM:" prefix on terminal VM failures. #6713 turned the
error into an enum and formatted it with Display, nesting the prefix.

Treat an interrupted model attempt with confirmed cleanup as settled when
validating a history/fork cut, matching the store's own pending index. A
cooperatively stopped Run no longer makes publishCheckpoint unavailable.

Run the computer-use native nextest suite only on macOS. #6713 removed every
Windows test its filter selected, so the Windows suite was empty and failed
before any desktop verification ran; Windows keeps its compile check.

Generated-by: Antigravity
M4n5ter added a commit that referenced this pull request Nov 10, 2026
Restore CI gates for VM diagnostics, settled model-attempt checkpoints, ASF headers, and native platform test selection.

Keep archive initialization state out of nested cursor read futures so restored history works with the default debug Host stack. Exercise encrypted replay and rate-limit retries through the Responses WebSocket fixture.

Generated-by: Antigravity
Generated-by: Codex
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