-
Notifications
You must be signed in to change notification settings - Fork 3.4k
v0.8.68: persist stateful terminal identity and restart limitations safely #4355
Copy link
Copy link
Closed
Labels
agent-readyBody is self-sufficient per docs/AGENT_RUNNER.md; a remote agent may claim itBody is self-sufficient per docs/AGENT_RUNNER.md; a remote agent may claim itbugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestreliabilityReliability, flaky behavior, retries, fallbacks, and robustnessReliability, flaky behavior, retries, fallbacks, and robustnesstoolsTool execution, tool schemas, tool UX, and built-in tool behaviorTool execution, tool schemas, tool UX, and built-in tool behaviortuiTerminal UI behavior, rendering, or interactionTerminal UI behavior, rendering, or interactionv0.8.68Targeting v0.8.68Targeting v0.8.68
Milestone
Description
Metadata
Metadata
Assignees
Labels
agent-readyBody is self-sufficient per docs/AGENT_RUNNER.md; a remote agent may claim itBody is self-sufficient per docs/AGENT_RUNNER.md; a remote agent may claim itbugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestreliabilityReliability, flaky behavior, retries, fallbacks, and robustnessReliability, flaky behavior, retries, fallbacks, and robustnesstoolsTool execution, tool schemas, tool UX, and built-in tool behaviorTool execution, tool schemas, tool UX, and built-in tool behaviortuiTerminal UI behavior, rendering, or interactionTerminal UI behavior, rendering, or interactionv0.8.68Targeting v0.8.68Targeting v0.8.68
Projects
StatusShow more project fields
Done
Problem
Stateful terminal sessions preserve shell state for the lifetime of the current Codewhale process, but the persisted contract is not yet honest or safe across a Codewhale restart. A restarted client must not mistake a reused PID or stale local record for a live shell.
Evidence
The current terminal-session implementation keeps process-local identity, working-directory state, sentinel parsing, cancellation, reset, and approval gating. What is missing is a durable summary and an explicit stale/lost state after restart.
Expected behavior
Likely files
crates/tui/src/tools/terminal_session.rscrates/tui/src/session_manager.rsAcceptance criteria