Support task IDs with chat --resume#40
Closed
temp-deepshard wants to merge 3 commits into
Closed
Conversation
temp-deepshard
force-pushed
the
codex/run-resume-aliases
branch
from
July 15, 2026 01:56
db77d67 to
3efa5fa
Compare
temp-deepshard
force-pushed
the
codex/run-resume-aliases
branch
from
July 15, 2026 02:01
3efa5fa to
db8bef3
Compare
temp-deepshard
marked this pull request as ready for review
July 15, 2026 02:32
temp-deepshard
marked this pull request as draft
July 15, 2026 04:39
temp-deepshard
marked this pull request as ready for review
July 15, 2026 04:40
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.
Summary
Extend the existing
truffile chat --resumeflag to accept an optional task ID, and make recent-task selection consistently use the most recently updated chats.This keeps one chat command instead of adding parallel
runorresumecommands. The existing chat engine, task streams, picker, one-shot path, and compatibility flags remain in place.Behavior
--task-idremains supported for compatibility. Supplying conflicting IDs through--resumeand--task-idfails during argument parsing.Implementation
chat --resumeparser accept an optional task IDtask_idfield consumed by the chat engine*.whlso local build artifacts cannot be staged accidentallyThe ordering normalization is necessary because the device returns
max_before + 1records in oldest-to-newest order. Without it,--resume-lastcould select an older task, the picker opened on the oldest visible task, and--list-tasks Nreturned N+1 rows.No wheel, generated protobuf, copied runtime, packaging configuration, or unrelated CLI files are included.
Validation
8 passed161 passed, 1 subtests passedgit diff --checkpasseschat --resume [TASK_ID]truffle-6239continuity test:chat --list-tasks 1 --jsonreturned exactly B as the newest taskchat --resume-lastreused B's task ID and recovered B's context tokenchat --resume A_TASK_IDreopened A and recovered A's context token after a live follow-upchat --resumeplaced the most recently updated task first in the picker