CPLAT-9497: improve session picker and conversation navigation#22
Open
gavin-jeong wants to merge 33 commits intomasterfrom
Open
CPLAT-9497: improve session picker and conversation navigation#22gavin-jeong wants to merge 33 commits intomasterfrom
gavin-jeong wants to merge 33 commits intomasterfrom
Conversation
Entity Tree View: - Toggle left pane between flat conversation list and entity tree (tab when left-focused, or :tree command) - Right pane detail level cycles independently (tab when right-focused) - Tree shows Agents, Background Jobs, and Task Board sections - Compact labels: Agent: shortID [type], BG: id command, Task: #id subject - Rich preview: agents show full subagent conversation with tool calls, bg jobs show actual command output, tasks show full activity span - J key jumps from conv sub-item to matching entity in tree - ConvKeymap with configurable JumpToTree key Agent Navigation Fixes: - Parse toolUseResult.agentId from session JSONL (was reading empty top-level field) - Build toolUseToAgent map for direct agent ID lookup instead of timestamp heuristics - Fix bg task navigation: match actual TaskOutput result instead of "Command running in background" acknowledgement - TaskCreate operations now visible as sub-items (task detection decoupled from task list existence) Configurable Refresh: - All views use keymap.Session.Refresh instead of hardcoded "R" - Added refresh to Stats and Hooks views (previously had none) - Help lines use configurable key
URLs ending with `**` (markdown bold markers) were stored as-is, producing invalid URLs in the picker. Add `*` to the TrimRight character set alongside existing punctuation.
Add cron-aware session scanning and TUI views so cron jobs can be filtered, inspected, and drilled into alongside tasks, agents, and background jobs.
Stop the sessions view from reapplying a cleared filter during live refresh by clearing the stored startup search query when esc resets the active filter.
Roll up project stats by base repo so worktrees aggregate together, and show each repo's cost ratio in the stats detail view.
Update the top-level stats project summary renderer to display the rolled-up repo path so worktree paths no longer appear in the stats view.
Keep the rolled-up repo stats detail and add a separate project-path breakdown so both repo and project perspectives are available.
Add CLI picker support and TUI navigation updates for session stats, repo aggregation, URL/file actions, and conversation live-tail behavior so browsing active work is easier without losing manual context.
ku524
approved these changes
Apr 13, 2026
Add a conversation subcommand with multi-line rows, turn-scoped artifact previews, and picker interactions for opening, editing, and jumping to related conversation turns.
Bring master into the feature branch, keep the current session picker, repo stats, live-tail, and conversation picker changes, and resolve the PR merge conflicts.
Multi-line conversation rows could overflow the list height, clipping the first item. Switch from pre-computed visMax to real-time line counting so items always render within the available space.
Indent multi-line conversation body rows to the same text column as the header, rather than the far-left gutter, so wrapped lines align cleanly under the selected item's header text.
Keep assistant turns with failed tool results visible in conversation views and show an explicit error summary in previews so verbose mode exposes Bash/tool_result failures instead of collapsing them into tool-only turns.
Add tab-based mode cycling to ccx conversation and change standard conversation preview in the main TUI to show text plus artifact summaries instead of raw tool blocks.
Insert divider lines between merged preview turns so compact and standard conversation previews are easier to scan when multiple turns are shown in a single preview entry.
Switch picker truncation and padding from byte-length checks to terminal display width so CJK and other wide glyphs align correctly in the conversation picker.
Standard conversation preview renders directly from the raw entry, so it was bypassing the turn separators added to synthetic preview entries. Insert separators when multiple embedded turn headers are present so the preview is easier to scan.
Compact and standard previews were flattening all text blocks together, which removed the boundaries needed for visible separators. Render text by block chunks so divider lines actually appear between turns.
When the conversation preview is focused, show a left-side tooltip for the focused artifact block. Reuse existing diff rendering for change blocks and show concise details for files, URLs, and images.
Replace aggregate artifact counts in standard conversation preview with per-artifact preview blocks so the existing block cursor can navigate and select concrete files, URLs, images, and changes.
Drop the old count-based standard preview renderer so conversation STANDARD uses only the synthesized artifact-row path and tests reflect the active behavior.
Render per-turn artifacts in standard conversation preview as a passive list instead of selectable-looking rows, while keeping the left-side detail tooltip for focused artifact context.
Make the focused artifact tooltip image-aware using cache-only lookup for passive preview. Show an image detail card with paste ID and cached path when available, while keeping explicit open behavior unchanged.
Add a new internal/kitty package for terminal capability detection and Kitty graphics protocol image drawing. When a focused image artifact has a cached file and the terminal supports Kitty graphics, draw the image inline over the tooltip area. Falls back to the existing text card in unsupported terminals.
Add CCX_KITTY=1 env override and KITTY_WINDOW_ID/KITTY_PID fallback detection for tmux sessions where TERM_PROGRAM is lost. Wrap Kitty graphics escape sequences in tmux DCS passthrough so they reach the outer terminal correctly.
Place inline images at the tooltip's computed position instead of a fixed corner, and emit a clear command on every non-image frame so stale images disappear when focus moves away.
Query tmux server environment for TERM_PROGRAM and KITTY_WINDOW_ID so Kitty graphics support is detected automatically without requiring CCX_KITTY=1 when running inside tmux on a Kitty-compatible terminal.
Position the inline image inside the tooltip box area using the same cursor-relative Y calculation as overlayTooltip, accounting for the text header lines. The clear command on every non-image frame already handles resize and defocus cleanup.
Emit a Kitty graphics clear command after the TUI exits so inline images do not persist in the terminal after ccx terminates.
Query tmux pane top/left offset and add it to image placement coordinates so inline images land inside the correct pane, not at absolute terminal origin.
The cursor positioning escape and the Kitty image draw must both be inside the same DCS passthrough sequence so they share the same coordinate space (terminal-absolute). Previously the cursor move went through tmux (pane-relative) while the image data went through passthrough (terminal-absolute), causing misplacement.
Cache the tmux pane offset query and invalidate on resize so image placement stays correct after window changes. Also extract uncached images when the user focuses an image block, matching the tooltip behavior.
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.
JIRA: https://sendbird.atlassian.net/browse/CPLAT-9497
Summary
Test plan