You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(web): show every session when History is set to Unlimited - #36507
In the browser version of Orca, picking "Unlimited" in Agent Session History still showed at most 1,000 sessions. The browser forgot to pass "unlimited" along to the host, so the host used its normal 1,000 cap. Now it passes it along, so Unlimited means unlimited.
What Changed
Before: in the web client, History → Unlimited listed at most 1,000 sessions, the same as the 1,000 preset.
After: Unlimited lists every session the host has, as it already does on desktop.
Mechanism: the web preload (src/renderer/src/web/preload-api/web-ai-vault-api.ts) builds the aiVault.listSessions RPC params field by field and forwarded limit but not unlimited. The panel sends { limit: undefined, unlimited: true } for Unlimited, so the host received no limit and no unlimited flag and fell back to its default 1,000. The preload now forwards unlimited too.
Why
The host schema (AiVaultListSessionsParams) and desktop's runtime path (runtimeScanArgs in src/main/ipc/ai-vault-runtime-scan.ts) already carry unlimited; only the web projection dropped it. Fixing that one projection brings web in line with desktop without touching the host. The other AiVaultListArgs fields are either already forwarded or local-only (requestToken, executionHostScope).
Community #33361 contains the same one-line change inside a much larger, unmerged PR; this lands just the fix.
N/A: no UI change, only how many rows come back. Measured instead against a real host: a throwaway headless orca serve (installed build) scanning this machine's real agent history, called with the exact params the web client sends:
Extended the existing web preload forwarding test (src/renderer/src/web/web-preload-api-agent-providers.test.ts) with an Unlimited call; it fails without the fix (unlimited missing from the RPC params) and passes with it.
Ran the focused web preload tests and the dependent web-ai-vault-search-compat.test.ts; changed-file quality checks pass.
Real-host before/after on macOS as in the table above.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Review
Codex and Claude reviewed the change; neither raised findings.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Mixed versions: the host schema has accepted unlimited since the params catalog was introduced, and it is a plain z.object, so a host that didn't know the key would strip it and behave as before. Mobile has no Unlimited option, so there's no mobile gap. SSH, folder workspaces and platforms are unaffected: this is browser-side param forwarding only.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Walkthrough
The web preload now forwards the optional unlimited argument when it calls aiVault.listSessions. The test adds a call with unlimited: true and verifies that the runtime request includes the flag and execution host ID.
Severity of issue fixed: Medium
Merge Risk: Minimal · up to 1362d
The requested Unlimited history behavior is implemented and covered by a focused test.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title clearly and concisely describes the main change: making web History show every session when Unlimited is selected.
Description check
The description is complete and aligned with the template. It explains the user impact, mechanism, reason, linked issue, testing, compatibility considerations, and checklist status. The full repositor…
Linked Issues check
Issue #35931 requires browser Projects navigation to retain full history when more than 1,000 conversations exist. The production change forwards unlimited in createWebAiVaultApi().listSessions to…
Out of Scope Changes check
The pull request changes one web preload parameter projection and adds its focused regression assertion. Both changes directly support issue #35931. No unrelated production behavior or unrelated tests…
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Full details: Description check
Explanation
The description is complete and aligned with the template. It explains the user impact, mechanism, reason, linked issue, testing, compatibility considerations, and checklist status. The full repository-wide command checklist remains unchecked, but the focused testing evidence is sufficient for a mostly complete description.
Full details: Linked Issues check
Explanation
Issue #35931 requires browser Projects navigation to retain full history when more than 1,000 conversations exist. The production change forwards unlimited in createWebAiVaultApi().listSessions to aiVault.listSessions. The updated preload test verifies the flag and executionHostId reach the RPC. This implements the issue's stated fix without changing storage behavior.
Full details: Out of Scope Changes check
Explanation
The pull request changes one web preload parameter projection and adds its focused regression assertion. Both changes directly support issue #35931. No unrelated production behavior or unrelated tests are present in the reviewed summary.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files.
Finishing Touches
📝 Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
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
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.
ELI5
In the browser version of Orca, picking "Unlimited" in Agent Session History still showed at most 1,000 sessions. The browser forgot to pass "unlimited" along to the host, so the host used its normal 1,000 cap. Now it passes it along, so Unlimited means unlimited.
What Changed
src/renderer/src/web/preload-api/web-ai-vault-api.ts) builds theaiVault.listSessionsRPC params field by field and forwardedlimitbut notunlimited. The panel sends{ limit: undefined, unlimited: true }for Unlimited, so the host received no limit and no unlimited flag and fell back to its default 1,000. The preload now forwardsunlimitedtoo.Why
The host schema (
AiVaultListSessionsParams) and desktop's runtime path (runtimeScanArgsinsrc/main/ipc/ai-vault-runtime-scan.ts) already carryunlimited; only the web projection dropped it. Fixing that one projection brings web in line with desktop without touching the host. The otherAiVaultListArgsfields are either already forwarded or local-only (requestToken,executionHostScope).Community #33361 contains the same one-line change inside a much larger, unmerged PR; this lands just the fix.
Linked Issue
Fixes #35931
Linear: STA-12804
Visual Proof
N/A: no UI change, only how many rows come back. Measured instead against a real host: a throwaway headless
orca serve(installed build) scanning this machine's real agent history, called with the exact params the web client sends:{ executionHostId }(Unlimited,unlimiteddropped){ unlimited: true, executionHostId }Testing
Extended the existing web preload forwarding test (
src/renderer/src/web/web-preload-api-agent-providers.test.ts) with an Unlimited call; it fails without the fix (unlimitedmissing from the RPC params) and passes with it.Ran the focused web preload tests and the dependent
web-ai-vault-search-compat.test.ts; changed-file quality checks pass.Real-host before/after on macOS as in the table above.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Review
Codex and Claude reviewed the change; neither raised findings.
Agent skill upstream boundary
Notes
Mixed versions: the host schema has accepted
unlimitedsince the params catalog was introduced, and it is a plainz.object, so a host that didn't know the key would strip it and behave as before. Mobile has no Unlimited option, so there's no mobile gap. SSH, folder workspaces and platforms are unaffected: this is browser-side param forwarding only.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)