Skip to content

refactor(session): merge tree navigation actions into direction + interaction parameters#369

Open
jensenojs wants to merge 1 commit intosudo-tee:mainfrom
jensenojs:navigate_session_tree
Open

refactor(session): merge tree navigation actions into direction + interaction parameters#369
jensenojs wants to merge 1 commit intosudo-tee:mainfrom
jensenojs:navigate_session_tree

Conversation

@jensenojs
Copy link
Copy Markdown
Contributor

@jensenojs jensenojs commented May 2, 2026

The three session navigation actions differ only by direction and picker behavior,
but each is a separate function. Adding forward/backward flat navigation would
make this worse.

navigate_session_tree(direction, interaction, wrap, empty_policy) replaces
all three, with forward/backward for global next/prev by time.updated.

Before After
select_parent_session navigate_session_tree('parent')
select_child_session navigate_session_tree('child', 'picker')
select_sibling_session navigate_session_tree('sibling', 'picker')
navigate_session_tree('forward', 'direct', true)
navigate_session_tree('backward', 'direct', true)

New: forward/backward for flat global navigation by time.updated.
Parameters: direction, interaction (direct|picker), wrap, empty_policy.
Implementation: tree_directions config table, async session list lookup.

…eraction parameters

Before                           | After
---------------------------------|------------------------------------------
select_parent_session            | navigate_session_tree('parent')
select_child_session             | navigate_session_tree('child', 'picker')
select_sibling_session           | navigate_session_tree('sibling', 'picker')
—                                | navigate_session_tree('forward', 'direct', true)
—                                | navigate_session_tree('backward', 'direct', true)

New: forward/backward for flat global navigation by time.updated.
Parameters: direction, interaction (direct|picker), wrap, empty_policy.
Implementation: tree_directions config table, async session list lookup.
@jensenojs
Copy link
Copy Markdown
Contributor Author

jensenojs commented May 2, 2026

thank David Herman !

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.

1 participant