Skip to content

Refine Sessions layout and add drag-to-copy - #121

Merged
merefield merged 6 commits into
mainfrom
fix/session-list-refinements
Nov 27, 2026
Merged

merefield merged 6 commits into
mainfrom
fix/session-list-refinements

Conversation

@merefield

@merefield merefield commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Changes

  • Cap terminal Sessions telemetry boxes at 40 columns (previously 48), preserving the proportional layout on narrow terminals and giving the detail or graph more room. The Sessions header uses equal-width buttons, with Close All split across two lines.
  • Drag visible output in split, wide or full terminal detail to copy just that selection as plain text. The selected cells highlight briefly, and a bright badge shows the character count for five seconds, centred on the bottom footer row (or one row higher on narrow terminals). Ordinary clicks, action controls, the composer, and whole-reply Copy keep their existing behaviour.
  • Use Clear Check (or K) beside the Sessions controls to dismiss only matching Check* rows, including off-page matches. Codex threads and measurements keep running; pending quota-profile reviews remain visible. Strict confirmation mode adds a second action.
  • Match ordinary Sessions border controls to their frame colour at rest. Disabled controls stay dim, approval warnings retain their warning colour, and hover and click feedback are unchanged.
  • Update the README and refresh the Sessions and approval screenshots.

Checks

  • Targeted race tests for layout, hit targets, shortcuts and drag-to-copy passed.
  • Local binary rebuilt; screenshot verification and the production duplication gate passed.
  • No web changes.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Terminal-specific mouse release, grapheme highlighting, clipboard behavior, and localized header layout span multiple UI modes, so an interactive terminal check remains necessary despite strong unit coverage.

No open issues 🎉

What changed in this PR

Refines the terminal Sessions interface with improved responsive layout, drag-to-copy selection for visible output, and a scoped Clear Check action while updating documentation, localization, tests, and screenshot metadata.

Changes:

  • Caps telemetry columns at 40 characters and adds responsive equal-width Sessions controls.
  • Adds grapheme-aware drag selection, plain-text clipboard copying, temporary highlighting, and copy-count feedback.
  • Adds Clear Check and K shortcut handling with confirmation support, localization updates, documentation, tests, and refreshed screenshot metadata.
File Description
README.md Documents the revised Sessions layout, drag-to-copy behavior, and Clear Check action.
internal/​ui/​view.go Applies selection highlighting and renders the temporary copy receipt.
internal/​ui/​session_thread_links_test.go Updates session link interaction tests for click and release handling.
internal/​ui/​session_links.go Makes terminal link hit testing aware of grapheme clusters.
internal/​ui/​session_links_darwin_test.go Updates macOS session link interaction coverage for click and release handling.
internal/​ui/​monitor.go Adds responsive Sessions header controls, Clear Check rendering, and the 40-column telemetry cap.
internal/​ui/​monitor_text_selection_test.go Tests drag selection across detail modes, graphemes, stale content, pane boundaries, and ordinary clicks.
internal/​ui/​monitor_selection.go Implements visible-output selection, validation, clipboard copying, highlighting, and expiry timers.
internal/​ui/​monitor_read.go Integrates selection handling and shares result-pane geometry calculations.
internal/​ui/​monitor_profile.go Shares profile body layout calculations between rendering and hit testing.
internal/​ui/​monitor_header_focus.go Reserves the K shortcut for Clear Check during header focus handling.
internal/​ui/​monitor_context.go Shares split-context body sizing between rendering and selection hit testing.
internal/​ui/​monitor_columns_test.go Updates telemetry width and target-alignment coverage for the 40-column cap.
internal/​ui/​monitor_close_all.go Adds scoped Check-row dismissal and confirmation state management.
internal/​ui/​monitor_close_all_test.go Tests equal-width header controls and updated Close All rendering.
internal/​ui/​monitor_clear_check_test.go Covers Clear Check filtering, confirmation, shortcuts, and responsive hit targets.
internal/​ui/​model.go Adds selection state, Clear Check routing, shortcut handling, and dismissal bookkeeping.
internal/​ui/​english_snapshot_test.go Refreshes the English presentation snapshot baseline.
internal/​i18n/​locales/​zh-Hans.json Adds Clear Check and copy-receipt translations and updates Close All wrapping.
internal/​i18n/​locales/​tr.json Adds Clear Check and copy-receipt translations and updates Close All wrapping.
internal/​i18n/​locales/​sv.json Adds Clear Check and copy-receipt translations and updates Close All wrapping.
internal/​i18n/​locales/​ru.json Adds Clear Check and copy-receipt translations and updates Close All wrapping.
internal/​i18n/​locales/​pt-PT.json Adds Clear Check and copy-receipt translations and updates Close All wrapping.
internal/​i18n/​locales/​pt-BR.json Adds Clear Check and copy-receipt translations and updates Close All wrapping.
internal/​i18n/​locales/​nl.json Adds Clear Check and copy-receipt translations and updates Close All wrapping.
internal/​i18n/​locales/​nb.json Adds Clear Check and copy-receipt translations and updates Close All wrapping.
internal/​i18n/​locales/​ja.json Adds Clear Check and copy-receipt translations and updates Close All wrapping.
internal/​i18n/​locales/​it.json Adds Clear Check and copy-receipt translations and updates Close All wrapping.
internal/​i18n/​locales/​fr.json Adds Clear Check and copy-receipt translations and updates Close All wrapping.
internal/​i18n/​locales/​fi.json Adds Clear Check and copy-receipt translations and updates Close All wrapping.
internal/​i18n/​locales/​et.json Adds Clear Check and copy-receipt translations and updates Close All wrapping.
internal/​i18n/​locales/​es.json Adds Clear Check and copy-receipt translations and updates Close All wrapping.
internal/​i18n/​locales/​en-GB.json Adds English Clear Check and copy-receipt strings and updates Close All wrapping.
internal/​i18n/​locales/​de.json Adds Clear Check and copy-receipt translations and updates Close All wrapping.
internal/​i18n/​locales/​da.json Adds Clear Check and copy-receipt translations and updates Close All wrapping.
assets/​screenshots/​manifest.json Refreshes the Sessions screenshot frame and PNG hashes.

Review effort: Lite

@merefield
merefield merged commit c8a63d7 into main Nov 27, 2026
8 checks passed
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