Support resuming AI sessions from a selected UUID#332
Conversation
Agent-Logs-Url: https://github.com/tninja/ai-code-interface.el/sessions/a9aabab7-19c7-4e4e-892c-1f1e4a4d8cff Co-authored-by: tninja <714625+tninja@users.noreply.github.com>
Agent-Logs-Url: https://github.com/tninja/ai-code-interface.el/sessions/a9aabab7-19c7-4e4e-892c-1f1e4a4d8cff Co-authored-by: tninja <714625+tninja@users.noreply.github.com>
Agent-Logs-Url: https://github.com/tninja/ai-code-interface.el/sessions/a9aabab7-19c7-4e4e-892c-1f1e4a4d8cff Co-authored-by: tninja <714625+tninja@users.noreply.github.com>
Agent-Logs-Url: https://github.com/tninja/ai-code-interface.el/sessions/a9aabab7-19c7-4e4e-892c-1f1e4a4d8cff Co-authored-by: tninja <714625+tninja@users.noreply.github.com>
Agent-Logs-Url: https://github.com/tninja/ai-code-interface.el/sessions/a9aabab7-19c7-4e4e-892c-1f1e4a4d8cff Co-authored-by: tninja <714625+tninja@users.noreply.github.com>
Agent-Logs-Url: https://github.com/tninja/ai-code-interface.el/sessions/a9aabab7-19c7-4e4e-892c-1f1e4a4d8cff Co-authored-by: tninja <714625+tninja@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR improves the CLI resume UX across backends by detecting a selected UUID in the active region and using it to prefill the resume-args prompt (without requiring a prefix argument), aligning the flow with the existing interactive C-u resume behavior.
Changes:
- Added UUID-shaped region detection (
8-4-4-4-12) and used it to trigger/seed prompting for resume commands only (resume/--resume). - Updated shared start-command resolution so selected UUIDs are appended to the default args and included in the resolved command/args plist.
- Added targeted ERT coverage for
--resume,resumesubcommand, and non-UUID selections.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
ai-code-backends-infra.el |
Adds UUID detection from the active region and extends command resolution to prefill resume args when a UUID is selected. |
test/test_ai-code-backends-infra.el |
Adds ERT tests validating UUID-prefill behavior for both --resume and resume flows, and ensuring non-UUID selections are ignored. |
|
@copilot we can trim the leading and trimming space from the selected region, and then do UUID detection. |
Already covered in |
Resume now recognizes a selected UUID in the current buffer and seeds the resume args prompt with it, matching the existing
C-u Rflow without requiring a prefix arg. This makes it faster to reopen a known prior session directly from copied/session-linked IDs.Resume arg resolution
8-4-4-4-12form.resume/--resume).Behavioral guardrails
Targeted ERT coverage
--resumeflows prefilled with the selected UUIDresumesubcommand flows prefilled with the selected UUIDExample: