Skip to content

fix: retain catalog and layout state across resume - #873

Merged
justrach merged 1 commit into
release/v0.0.297from
fix/resume-prefix-state
Sep 12, 2026
Merged

justrach merged 1 commit into
release/v0.0.297from
fix/resume-prefix-state

Conversation

@justrach

@justrach justrach commented Sep 12, 2026

Copy link
Copy Markdown
Owner

What changed

Persist loaded native/MCP tool names and order, plus the session-start layout segment. Restore them before the first resumed request. Add save/load regressions and an offline fresh-process check to CI.

Why

A fresh process rebuilt this state and changed the request prefix despite unchanged conversation history. Resolve tools against current capabilities rather than saved schemas or permission grants. Restore layout only in the same workspace without freezing current instructions or overriding map opt-outs. Successful restoration does not guarantee a cache hit.

Verification

  • zig build --summary all — passed.
  • zig build test --summary all — passed.
  • scripts/eval-tier1.sh via the pre-push hook — passed.
  • python3 scripts/test-resume-cache.py --mode offline --out <temporary-directory> — passed.
  • python3 scripts/test-resume-cache.py --mode preflight --out <temporary-directory> — passed.
  • Original exact-head branch and PR CI — passed before retargeting to the release branch.
  • The release base already has failing tournament and native GUI CI checks; release integration CI is separate.

Closes #867.
Closes #871.

Fresh-process resume rebuilt the tool catalog and project layout, changing the request prefix despite unchanged conversation history.

Persist selected tool names and order plus the same-workspace layout segment. Resolve names against the current registry and retain current instructions and permission checks. Cover save/load and fresh-process restart in offline regressions.
@justrach
justrach changed the base branch from main to release/v0.0.297 September 12, 2026 17:33
@justrach
justrach merged commit e78437c into release/v0.0.297 Sep 12, 2026
6 checks passed
@justrach
justrach deleted the fix/resume-prefix-state branch September 12, 2026 17:45
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.

Resume rebuilds the session-start project layout Resume does not restore loaded tool schemas

1 participant