Skip to content

fix(web): show every session when History is set to Unlimited - #36507

Merged
AmoabaKelvin merged 1 commit into
mainfrom
web-history-unlimited-fix
Oct 31, 2026
Merged

AmoabaKelvin merged 1 commit into
mainfrom
web-history-unlimited-fix

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1

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

  • 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.

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:

Params web client sends Sessions returned
Before: { executionHostId } (Unlimited, unlimited dropped) 1000
After: { unlimited: true, executionHostId } 1781

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 (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)

@coderabbitai

coderabbitai Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 22f96d55-62e4-435a-baf9-c953e10e4617
Commits

Reviewing files that changed from the base of the PR and between 86d1623 and 1362d5d.

Files selected for processing: 2
  • src/renderer/src/web/preload-api/web-ai-vault-api.ts
  • src/renderer/src/web/web-preload-api-agent-providers.test.ts

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: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: making web History show every session when Unlimited is selected.
Description check Passed 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 Passed 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 Passed 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 Passed 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@AmoabaKelvin
AmoabaKelvin merged commit bc57cdb into main Oct 31, 2026
41 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.

[Bug]: Browser Projects navigation omits conversations older than its default 1000-row limit

1 participant