feat: lifeos -r accepts an optional session ID#1430
Open
borfast wants to merge 1 commit into
Open
Conversation
The launcher only forwarded a bare --resume, so 'lifeos -r <session-id>' tripped the unknown-command error and there was no way to resume a specific session through the launcher (plain 'claude -r <id>' loses the appended system prompt and, on multi-profile setups, looks in the wrong config root's sessions). 'k -r' with no ID keeps the interactive picker; 'k -r <id>' forwards '--resume <id>' to Claude Code.
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.
Problem
The launcher only forwards a bare
--resumeto Claude Code, solifeos -r <session-id>trips the argument parser's unknown-command error — there is no way to resume a specific session through the launcher. Falling back to plainclaude -r <session-id>loses the appended constitutional system prompt, and on multi-profile setups (CLAUDE_CONFIG_DIR) it looks in the wrong config root's session store entirely.Change
-r/--resumenow accepts an optional session ID:lifeos -r— unchanged; opens Claude Code's interactive session picker.lifeos -r <session-id>— forwards--resume <session-id>, resuming that session with the constitution and the correct profile intact.The ID is only consumed when the next token doesn't start with
-, so all existing flag combinations behave exactly as before. Help text updated to match.Verification
lifeos -rwith no ID still launches the picker (bare--resumeforwarded, unchanged behaviour).lifeos -r <id>forwards--resume <id>and resumes the named session.lifeos -r -m bdstill parses-mas a flag, not as a session ID.