Repository navigation
feat: resume <id> "<prompt>" continues a settled session with new instructions - #65
Merged
Merged
Conversation
Formalize the nohup-background + poll pattern agents improvise for CPU-bound jobs exceeding the 30s run_command ceiling (issue #59): - job_start (Write): argv-split like run_command (no shell; bash -c is the explicit shell escape), detached into its own process group, stdin null, stdout+stderr -> tole-jobs/<id>/log inside the file-tools workspace. Returns job id + pid immediately. - job_poll (ReadOnly): liveness via 'ps -p <pid> -o stat=' treating zombie state (Z*) as finished, plus a bounded 8KiB-window tail of the log (stat -> seek -> read; lossy UTF-8 at the boundary). The full log stays reachable via read_file through the same jail. Depends on the --workspace jail (#57, merged): logs live under the file_root so read_file can reach them without workarounds. Closes #59, closes #56 (option b: native shell job control)
…tructions Issue #55 (revised scope): resume previously took no prompt at all, so headless multi-mission flows needed a separate run session per mission and lost conversational context. An optional PROMPT argument now appends a new user message at a turn boundary via run_turn; without it, resume keeps the approvals-only recovery behavior. Mid-flight sessions keep refusing run_turn (durable state-machine precondition) - the recovery protocol stays: bare resume first, then resume-with-prompt. Note: the chat-REPL half of the original issue was refuted by live repro on 2026-09-12 (piped chat exits cleanly at EOF). Closes #55
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This was referenced Oct 1, 2026
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.
What (description of the change)
tole resume <id> "<prompt>"gains an optional PROMPT argument: on a session parked at a turn boundary, it appends the prompt as a new user message and drives one full turn viarun_turn. Without PROMPT,resumekeeps its existing approvals-only recovery semantics. Mid-flight sessions keep the durable precondition error (bareresumefirst — that protocol is unchanged).Why (the problem you're solving)
Issue #55 (revised scope after validation): headless multi-mission flows needed a separate
runsession per mission, losing conversational context. The issue's other half ("chat REPL never exits on piped input") was REFUTED by live repro on 2026-09-12 — pipedchat --resumeprocesses queued messages and exits cleanly at EOF — so this PR intentionally covers only the resume-with-prompt gap.Testing (how you verified this works)
resume <id> "What was the codeword?"in a separate invocation returned exactly MANGO-9 — proving the prompt lands in the SAME durable session with full history.resumecompletes the pending turn; the next resume-with-prompt works.Closes #55