Skip to content

feat(timeline): port Find prev/next, subagent pill, latest copy, tail padding, run commentary, and session references - #257

Merged
Hona merged 1 commit into
devfrom
ws3/timeline-batch1
Nov 20, 2026
Merged

Hona merged 1 commit into
devfrom
ws3/timeline-batch1

Conversation

@Hona

@Hona Hona commented Nov 20, 2026

Copy link
Copy Markdown
Member

Summary

Ports six upstream WS-3 rows to anomalyco/opencode e51247f626, preserving ours.md §3.1/§3.2 (.whole_rows(), tight rune::memo keys, O(1) per-row checks, and backward-compatible preview.rs binary cache):

  • Conversation Find prev/next (UP-078, #64865): features/find/src/view.rs widens the Find bar to 240 pt, adds Previous/Next match chevron buttons (ui.fileSearch.{previousMatch,nextMatch}, disabled at 0.4 opacity when count is 0), and keeps focus in find-input when stepping by pointer.
  • Subagent header breadcrumb hover pill (PRE-13, #63742): apps/desktop/src/shell/view/header.rs adds hover/focus pill styling and slash separator insets on ancestor breadcrumb buttons.
  • Latest response copy visible at rest (UP-070, #64640): crates/session-view/src/timeline/{parts.rs,mod.rs} computes latest_copy_message once per timeline build (O(1) per row even in 10k-message sessions) and keeps only that turn's Copy visible at rest while hiding earlier turns' footers until hover/focus.
  • Dynamic timeline tail padding (UP-091, #64973): crates/session-view/src/timeline/{rhythm.rs,mod.rs} adds tail_extra ((gap - S).max(0.0), matching {s: 0, m: 4, l: 16}) above the composer/activity pill.
  • Per-run commentary & native.phase (UP-083, #64917): crates/opencode-kit/src/model/{mod.rs,parse.rs,transcript.rs,preview.rs} records optional provider native.phase (commentary / final_answer) in Assistant::text_phases without changing preview.rs's wire format; crates/session-view/src/{turns/mod.rs,timeline/{delivery.rs,mod.rs,span.rs}} splits commentary per Entry::Idle-bounded run and applies native.phase precedence.
  • Session IDs easier to find & copy (PRE-02, #63083): plugins/debug/init.luau adds the clickable SESSION copy cell (shortened 8 + … + 4, exact casing, Copied toast); features/mentions/src/{lib.rs,refs.rs} + apps/desktop/src/session/composer/mentions.rs upgrade the context menu to SessionReferenceMenu (Open Session, Copy Session ID, Copy Session Title + toasts) and keep active/archived sessions raw; crates/session-view/src/{session_chips.rs,style.rs,user_parts.rs} + crates/opencode-kit/src/mention.rs style known references as muted medium @Title links and make unknown/archived/active IDs right-clickable while keeping their inline-code pill. (Composer @session pill right-click will wire in a follow-up once Rune #1293 merges and pins.)

Verification

  • pwsh scripts/guardrails.ps1: 5/5 passed.
  • cargo check --workspace, cargo check -p session-view --examples, scripts/web.ps1 -Check (1002 files in 46 crates, no std::time::Instant / SystemTime::now), and cargo build -p opencode-desktop: all passed with 0 errors and 0 warnings.
  • 0 #[test] / #[cfg(test)] added.
  • Live headless captures verified at 1x and 1.5x, light and dark (proof/ws3/batch1/):
    • find-matches-1x-light.png & find-matches-1.5x-dark.png + find-matches-tree.json: 2/39 stepped and find-input remains focused with blue focus border.
    • find-zero-1x-light.png: 0/0 with dimmed Previous/Next chevrons.
    • subagent-hover-1.5x-{light,dark}.png: rounded hover pill + full-title tooltip.
    • session-chips-1.5x-light.png & session-ref-menu-1x-light.png: muted medium @Title links, raw unknown ID chip, 3-item SessionReferenceMenu, latest-only Copy at rest.
    • debug-bar-1x-light.png & debug-bar-copied-1x-light.png: SESSION ses_fx00…aaaa cell, tooltip, and Copied toast.

… padding, run commentary, and session references

Ports six upstream WS-3 timeline and session-header improvements to
`anomalyco/opencode` `e51247f626` while preserving `ours.md` §3.1/§3.2
hot-path invariants (`.whole_rows()`, tight `rune::memo` keys, O(1)
per-row checks, and zero `preview.rs` wire-format changes):

- `UP-078` (`#64865`): Previous/Next match chevron buttons in Find bar
  (240 pt width, disabled at 0.4 opacity on 0 matches, preserves focus
  in `find-input` on click).
- `PRE-13` (`#63742`): Subagent header ancestor breadcrumb hover/focus
  pill and separator insets.
- `UP-070` (`#64640`): Keep only the latest finished turn's Copy button
  visible at rest, computing `latest_copy_message` once per timeline
  build for O(1) per-row memo checks.
- `UP-091` (`#64973`): Dynamic `tail_extra` (`{s: 0, m: 4, l: 16}`)
  bottom padding above the composer/activity pill.
- `UP-083` (`#64917`): Split turn commentary at `Entry::Idle` run
  boundaries and honor provider `native.phase` (`commentary` /
  `final_answer`) on `Assistant::text_phases` without changing `Part::Text`
  or `preview.rs` binary encoding.
- `PRE-02` (`#63083`): Debug bar `SESSION` copy cell with `Copied` toast
  (`plugins/debug/init.luau`), `SessionReferenceMenu` (`Open Session`,
  `Copy Session ID`, `Copy Session Title` + toasts), muted-medium
  hover-underline transcript links (`@Title`), and right-clickable raw
  unknown/archived/active session IDs.
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

PR test build retired — merged into dev. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode/desktop-rune/dev/macos-arm64-dmg.

@Hona
Hona merged commit e3ceb01 into dev Nov 20, 2026
7 checks passed
@Hona
Hona deleted the ws3/timeline-batch1 branch November 20, 2026 09:06
Hona added a commit that referenced this pull request Nov 20, 2026
…ing (#266)

- Fold verified fleet PRs #247, #251, #252, #253, #254, #255, #256, #257,
  #258, #260, #261, #262, #263, #264, and #265 (Rune #1290 PRE-11 / #1296)
  into docs/upstream-sync/ledger.{json,md}
- Audit upstream anomalyco/opencode through 92d35f8e18 (+9 commits past
  bf683129fa), adding UP-107..UP-113 and assigning UP-106/UP-108/UP-111 to
  BROWSER-UI
- Update scripts/upstream-sync-check.ts to skip pure *.fixture.* test files
  and route browser UI/history vs extensions commits to BROWSER-UI and WS-9
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