Skip to content

feat(session): allow session ID as direction in navigate_session_tree#370

Open
jensenojs wants to merge 3 commits intosudo-tee:mainfrom
jensenojs:fix/task-direct-child-switch
Open

feat(session): allow session ID as direction in navigate_session_tree#370
jensenojs wants to merge 3 commits intosudo-tee:mainfrom
jensenojs:fix/task-direct-child-switch

Conversation

@jensenojs
Copy link
Copy Markdown
Contributor

When direction is not a known tree direction, treat it as a session ID and switch directly. Task action now passes metadata.sessionId so S key opens the exact child session.

jensenojs added 2 commits May 5, 2026 22:10
When direction is not a known tree direction, treat it as a session
ID and switch directly. Task action now passes metadata.sessionId
so S key opens the exact child session.
Move session ID detection above tree-navigation active check
so invalid inputs get clear feedback via empty_policy=notify.
Update tests to match new behavior.
@jensenojs jensenojs force-pushed the fix/task-direct-child-switch branch from 15b74c9 to fad6fe5 Compare May 5, 2026 14:38
Copy link
Copy Markdown
Owner

@sudo-tee sudo-tee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me,

Only left 2 minor comments about removing obvious comments in the code

Comment thread lua/opencode/commands/handlers/session.lua Outdated
Comment thread lua/opencode/commands/handlers/session.lua Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants