Skip to content

Sessions: filter live rows, browse saved history and follow renames - #111

Merged
merefield merged 4 commits into
mainfrom
feat/session-finder
Nov 19, 2026
Merged

merefield merged 4 commits into
mainfrom
feat/session-finder

Conversation

@merefield

Copy link
Copy Markdown
Owner

Find the right Codex session without losing sight of anything that needs attention. This is the Sessions feature follow-up to #110.

Live Sessions

  • Filter by name, directory or session ID in the terminal and browser, alongside status filtering. Totals and attention pills remain global; a pill can still open a filtered-out session.
  • F focuses the single-line finder outside editors. The magnifier and composer-style surface distinguish typing from status/history controls.
  • Observe live thread renames and hydrate titles from metadata on reconnect, retaining the local name index for ordinary CLI sessions.

Saved history (optional, read only)

  • Include history requests pages of non-archived interactive sessions from a compatible local shared Codex 0.170+ app-server signed in to ChatGPT. Local live filtering does not require that configuration.
  • Search loaded metadata, not transcripts. Saved results are deduplicated against live rows; opening one shows up to ten completed turns. No resume, acknowledgement, composer, approval or new on-disk index.
  • Check current-account membership before reading detail, invalidate on account/connection changes, and use the existing restricted-reply guard. The paired browser endpoint works without enabling web writes.

Verification

Go suite, targeted race tests and vet; Svelte/TypeScript and formatting; browser regression suite; all seven deterministic screenshots; production duplication ratchet. Includes localized terminal labels and updated usage documentation.

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.

🟡 Changes recommended

Saved-session discovery and opening can fail after provider changes or page reordering, while keyboard-navigation and detail-error handling regressions also remain unresolved.

4 open issues
What changed in this PR

This PR extends Sessions with live filtering and optional, read-only saved history in the terminal and browser, building on #110’s restricted-reply handling.

Changes:

  • Add name, directory and ID filtering alongside status filters while keeping totals and attention indicators global.
  • Add account-scoped, paginated saved history with bounded reply previews and a paired read-only browser endpoint.
  • Follow live session renames and refresh titles on reconnect, with updated localization, tests, documentation and embedded styling.
File Description
web/​tests/​browser.spec.ts Tests filtering, history opt-in, deduplication and scope invalidation.
web/​src/​style.css Adds shared composer-surface styling.
web/​src/​state.svelte.ts Adds authenticated saved-history requests.
web/​src/​Sessions.svelte Adds finder controls and filtered live navigation.
web/​src/​SessionActions.svelte Reuses composer-surface styling.
web/​src/​session-filter.ts Adds metadata matching.
web/​src/​SavedSessions.svelte Adds paginated read-only history browsing.
web/​src/​contracts.generated.ts Adds saved-history scope to snapshots.
README.md Documents filtering and saved-history requirements.
intro-post.md Introduces session discovery features.
internal/​web/​state.go Projects saved-history scope into browser state.
internal/​web/​session_finder.go Adds bounded saved-history request handling.
internal/​web/​session_finder_test.go Tests read-only endpoint authorization.
internal/​web/​server.go Registers the paired saved-history endpoint.
internal/​web/​dist/​index.html Updates embedded asset references.
internal/​web/​dist/​assets/​index-CDpkPmbB.css Adds rebuilt frontend styles.
internal/​web/​dist/​assets/​index-BN-GXLkD.css Removes the previous stylesheet bundle.
internal/​ui/​session_finder.go Implements terminal filtering and saved-history browsing.
internal/​ui/​session_finder_test.go Tests finder behavior, scoping and styling.
internal/​ui/​monitor.go Renders the finder and filtered empty state.
internal/​ui/​monitor_summary.go Allocates finder layout space.
internal/​ui/​monitor_navigation.go Adds the finder navigation button.
internal/​ui/​monitor_filter.go Combines text and status filtering.
internal/​ui/​monitor_context.go Handles finder-button activation.
internal/​ui/​monitor_context_modes.go Reveals filtered-out attention targets.
internal/​ui/​model.go Integrates finder events and scope updates.
internal/​ui/​english_snapshot_test.go Updates the presentation baseline.
internal/​i18n/​locales/​zh-Hans.json Adds Simplified Chinese finder labels.
internal/​i18n/​locales/​tr.json Adds Turkish finder labels.
internal/​i18n/​locales/​sv.json Adds Swedish finder labels.
internal/​i18n/​locales/​ru.json Adds Russian finder labels.
internal/​i18n/​locales/​pt-PT.json Adds European Portuguese finder labels.
internal/​i18n/​locales/​pt-BR.json Adds Brazilian Portuguese finder labels.
internal/​i18n/​locales/​nl.json Adds Dutch finder labels.
internal/​i18n/​locales/​nb.json Adds Norwegian Bokmål finder labels.
internal/​i18n/​locales/​ja.json Adds Japanese finder labels.
internal/​i18n/​locales/​it.json Adds Italian finder labels.
internal/​i18n/​locales/​fr.json Adds French finder labels.
internal/​i18n/​locales/​fi.json Adds Finnish finder labels.
internal/​i18n/​locales/​et.json Adds Estonian finder labels.
internal/​i18n/​locales/​es.json Adds Spanish finder labels.
internal/​i18n/​locales/​en-GB.json Adds British English finder labels.
internal/​i18n/​locales/​de.json Adds German finder labels.
internal/​i18n/​locales/​da.json Adds Danish finder labels.
internal/​codex/​session_settings_unix_test.go Extends daemon fixtures for history requests.
internal/​codex/​session_names.go Reuses single-line title sanitization.
internal/​codex/​session_finder.go Defines saved-history types and guarded browsing.
internal/​codex/​session_finder_unix.go Implements scoped listing and rename handling.
internal/​codex/​session_finder_unix_test.go Tests account checks, version gating and renames.
internal/​codex/​live_usage.go Carries daemon titles and history scope into snapshots.
internal/​codex/​daemon_status.go Extends daemon snapshots with names and scope.
internal/​codex/​daemon_status_unix.go Hydrates titles and manages connection-scoped history access.
docs/​slash-command-support.md Distinguishes history browsing from native resume support.
assets/​screenshots/​manifest.json Updates Sessions screenshot hashes.

Review effort: Balanced

Comment thread internal/codex/session_finder.go Resolved
Comment thread internal/codex/session_finder_unix.go Resolved
Comment thread internal/ui/session_finder.go Resolved
Comment thread web/src/Sessions.svelte Resolved
@merefield
merefield merged commit cdd651d into main Nov 19, 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