Repository navigation
Sessions: filter live rows, browse saved history and follow renames - #111
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 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
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.

Find the right Codex session without losing sight of anything that needs attention. This is the Sessions feature follow-up to #110.
Live Sessions
Saved history (optional, read only)
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.