Repository navigation
Make Claude session identity durable across recovery and automation - #878
Merged
Merged
Conversation
# Conflicts: # crates/freshell-freshagent/src/lib.rs
…e-rest-lane # Conflicts: # crates/freshell-freshagent/src/claude.rs # crates/freshell-ws/tests/common/claude_rig.rs
A late attach acknowledges the current native UUID and consumes its restart marker. A pending quiet deadline follows native history while retaining its exact process-owner fence. Regression tests fail before these changes and pass afterward: three attach statuses and four quiet deadline cases.
…sidecar Replace hosted protocol emitters with the production constructor, index.mjs, SDK recorder, and contract simulator. Observe the actual fixed MCP recipe and configure requests; inject refusal only at SDK setModel. Preserve fresh/resume boot, actor journal, default-effort and plugin behavior. All 24 Claude-filtered session-host tests and all-target Clippy pass.
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.
Freshclaude and Kilroy establish a durable native UUID before the first prompt. Create, /clear, recovery, rollback, fork, saved names and observer acknowledgements follow that identity. Native runtime history replaces placeholder bookkeeping while retaining legacy alias reads. A session created as A, cleared to B and restored after a server restart can be closed through A without leaving B running. Failed or cancelled closes release their guards, and recoverable restore errors retain the saved session identity.
Claude/Kilroy REST, CLI and MCP creation, splits, resume, input and capture share the browser's agent lane and saved settings. Publication is serialized with pane closure, and abandoned creates clean up only the runtime owned by their receipt. Retained fixtures execute the production sidecar over the SDK simulator or pinned real CLI.
OpenCode revival holds its ownership and session guards through restart publication, releasing ownership before waking session waiters so a completed revival cannot spuriously refuse a close. The Codex wrong-thread recovery test waits for real child registration and exit, checks terminal responses, and verifies the resume RPC. Managed-runtime test prerequisites compile before the startup deadline begins, and cloud verification streams progress without buffered-output limits.
Validation:
Deploy Rust and the Claude sidecar together: send IPC now requires the user-message UUID, and creation establishes the native session ID.