Skip to content

Show mobile conversations within projects - #33383

Open
gentslava wants to merge 60 commits into
stablyai:mainfrom
gentslava:gentslava/upstream-mobile-conversations
Open

gentslava wants to merge 60 commits into
stablyai:mainfrom
gentslava:gentslava/upstream-mobile-conversations

Conversation

@gentslava

@gentslava gentslava commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Browse named conversations within mobile projects, see the latest human message separately, reopen saved chats and keep readable rows during refresh.

What Changed

Legacy workspace rows without hostId use the phone's resolved host context for filtering, host labels and offline state. Conversation rows retain that context beside their wire data, so they stay associated with the correct computer across mixed host versions.

Groups live and saved conversations by host/project, preserves stable names and human previews, and provides search, new/resume actions, visibility and archive controls. Reuses the host-owned history index with conditional refresh and client/host generation fences. Genuine failures retain rows and offer Refresh; informational scanner notices do not claim that chats are missing or require an upgrade.

Why

The phone needs a stable conversation list that does not replace names with prompts or mistake partial diagnostic information for a missing-chat or update requirement.

Linked Issue

Fixes #35928. It absorbs #36865 and #37012, which were found while testing this PR.

Visual Proof

Actual bundled mobile web renderer with synthetic RPC replies, 390×844, English locale, hidden Chromium. The new regression fails against the previous source and passes after the correction. These captures are not physical-device acceptance.

Before: informational record notice After: readable chats remain usable
Misleading load and update warnings No false missing-chat or update warning

A real history-source failure retains the list and provides a working refresh action:

History retry action

Session name and latest human message

Actual Projects screen, English locale, synthetic host records, 390×844. RPC hooks and inactive sheets are isolated; the production conversation projection, list, row JSX, styles, and search field are used. These are headless component/screen captures, not installed-phone acceptance.

Before After
Before: prompts replace session names After: stable session titles and separate human previews
Before in light mode After in light mode

Testing

Current upstream refresh

Head f8f2b4565deb86a9a3220559e1144cff40191baf includes an ordinary forward merge of main 255b5c22c17ec91d1156db4e90049b754886d47e.

Resolve current scanner module moves while retaining selected-session discovery, sidecar observations, durable conversation projection and host ownership. Reuse the upstream SQLite worker creation and transcript absence detection instead of duplicating them.

Full desktop/runtime/CLI/web types pass, along with 78 tests in 13 focused suites. The final changed gate passes 40 of 41 checks, including mobile-related source quality, lint, formatting and ratchets; only its broad related-unit selection exceeds the three-minute local limit. Full-suite success is not claimed.

Existing visual proof retains its capture revisions. No new rendered, hosted-CI, package or physical-device acceptance is claimed by this source refresh.

Current head: 9492b8023f198c84d1c51ad1a9c836ebe7d807db, with an ordinary forward merge of main 890ad4d8aa24c115d5ddf287eca7776fb033a7be.

  • 81 focused desktop tests in 13 suites and 62 mobile tests in 12 suites pass, including selected older OpenCode identities. Retired upstream scanner tests remain retired.
  • Changed-source lint/format, E2E typecheck ratchet, localization catalogs/extraction and mobile application types pass.
  • Main at this revision has the unrelated missing Claude auth import tracked in Typecheck fails: usage-limit account hold imports the removed Claude auth path #41308. Full desktop types and mobile host/test declarations pass with the separate one-line fix(native-chat): resolve Claude auth import after module move #41309 correction applied for validation only and restored afterward; that correction is not committed in this PR.
  • The new blocking-API ratchet passes. Both SQLite list implementations reuse their existing metadata reader for selected sessions; their ratchet limits decrease from 4/5 to 3/4. Reads retain the existing worker/process transport.

Existing English screenshots retain their original capture source and dimensions. This compatibility refresh does not claim new rendered, installed Windows/Linux, physical-device, SSH or live-provider acceptance.

Risk

Level: Medium

Host attribution, retained snapshots and selected-session requests must agree across independently updated clients and servers. Capability checks preserve older-host fallback. Reverting restores the prior navigation and leaves saved transcripts intact.

AI Disclosure

Implemented and checked with OpenAI Codex assistance. The contributor owns the change and validation claims.

Review

Read all formal reviews, inline threads and top-level comments with pagination; no unresolved threads remain. Older automated coverage is not current-head approval.

Agent skill upstream boundary

  • This change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments or documentation.

Notes

Scope is this atomic feature. Cross-platform, remote, mobile and folder-workspace behavior were considered; live acceptance remains as stated above.

Checklist

  • Focused on one feature
  • Explained the change, reason, risk and back-out behavior
  • Self-reviewed correctness, security, performance and compatibility
  • Fresh current-head before/after interaction recording
  • Full pnpm lint, pnpm typecheck, pnpm test, pnpm build and upstream CI green

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
Walkthrough

The mobile app adds a host-scoped project conversation screen. It groups workspace tabs and session history, supports search, chat launch, pane selection, saved-session reveal, and transcript navigation. Conversation-specific history now requests and displays structured sessions. The AI Vault RPC adds opt-in durable-session projection, child-session filtering, host-aware metadata, and execution-host targeting. Tests cover these flows and browser rendering.

Merge Risk: Moderate · previous review b0642

Older conversations may show no history, and a retained search can hide a loaded conversation on web. Fix these navigation gaps before merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly summarizes the main change: displaying mobile conversations within projects.
Description check Passed The description follows the repository template and covers ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk, AI Disclosure, Review, upstream boundary, Notes, and Checklist. It explai…
Full details: Description check

Explanation

The description follows the repository template and covers ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk, AI Disclosure, Review, upstream boundary, Notes, and Checklist. It explains the feature, links issue #35928, provides before/after screenshots with stated capture conditions, gives detailed testing results with reported limitations, and states the risk level (Medium) and back-out behavior. Gaps: the Testing section does not tick the manual-testing or automated-test checkboxes, and it does not confirm that new tests fail without the change (only a note for one regression). The Checklist leaves a fresh current-head before/after interaction recording and full lint/typecheck/test/build CI unchecked. The Testing section also lists a mix of SHA-specific and superseded validation claims, which makes the current validation state harder to read. The 'Review' section is brief. The 'Why' section is short but states the problem and intent. The author-supplied description is substantive and mostly complete, so the check passes.

  • 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

@gentslava

Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Preserve includesStructuredSessions in… · session-list-result-validation.ts:171-177

src/main/ai-vault/session-list-result-validation.ts:171-177
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

Preserve includesStructuredSessions in parseAiVaultListResult.

When a structured-session result passes through this parser, the envelope schema strips includesStructuredSessions, and the returned object omits it. The mobile hook then marks the result incomplete and shows the legacy “Update Orca” state.

Proposed fix
-    unchanged: z.literal(true).optional()
+    unchanged: z.literal(true).optional(),
+    includesStructuredSessions: z.literal(true).optional()
...
     scannedAt: envelope.data.scannedAt,
+    ...(envelope.data.includesStructuredSessions ? { includesStructuredSessions: true as const } : {}),
     ...(envelope.data.fingerprint ? { fingerprint: envelope.data.fingerprint } : {}),

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: 6da1968b-9161-4b44-b801-f10bc481783d
Commits

Reviewing files that changed from the base of the PR and between 7d0103e and e338723.

Files selected for processing: 34
  • config/scripts/mobile-web-app/mobile-web-app-project-conversations-render.test.mjs
  • config/scripts/mobile-web-app/mobile-web-app-render.test.mjs
  • mobile/README.md
  • mobile/app/h/[hostId]/agent-history/[worktreeId].tsx
  • mobile/app/h/[hostId]/agent-history/[worktreeId].web.tsx
  • mobile/src/agent-history/MobileAgentSessionHistoryList.tsx
  • mobile/src/agent-history/MobileAgentSessionHistoryPanel.tsx
  • mobile/src/host-screen/HostConversations.tsx
  • mobile/src/host-screen/conversation-copy.ts
  • mobile/src/host-screen/conversation-open.test.ts
  • mobile/src/host-screen/conversation-open.ts
  • mobile/src/host-screen/conversation-styles.ts
  • mobile/src/host-screen/host-screen-view.tsx
  • mobile/src/host-screen/project-conversations.test-fixture.ts
  • mobile/src/host-screen/project-conversations.test.ts
  • mobile/src/host-screen/project-conversations.ts
  • mobile/src/host-screen/use-conversation-actions.test.tsx
  • mobile/src/host-screen/use-conversation-actions.ts
  • mobile/src/host-screen/use-project-conversations.test.tsx
  • mobile/src/host-screen/use-project-conversations.ts
  • mobile/src/session/notification-pane-tab.test.ts
  • mobile/src/session/notification-pane-tab.ts
  • src/main/ai-vault/session-list-result-validation.ts
  • src/main/ai-vault/session-list-results.test.ts
  • src/main/ai-vault/session-list-results.ts
  • src/main/ai-vault/structured-conversation-navigation.test.ts
  • src/main/ai-vault/structured-conversation-navigation.ts
  • src/main/ai-vault/structured-session-ownership.test-support.ts
  • src/main/ai-vault/structured-session-ownership.test.ts
  • src/main/ai-vault/structured-session-ownership.ts
  • src/main/runtime/rpc/methods/ai-vault.test.ts
  • src/main/runtime/rpc/methods/ai-vault.ts
  • src/shared/ai-vault-types.ts
  • src/shared/rpc-contract/ai-vault-params.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

@gentslava

Copy link
Copy Markdown
Contributor Author

Addressed the outside-diff parseAiVaultListResult finding from the 2026-10-25 05:38:46 UTC review in dc20b0d.

The envelope validates includesStructuredSessions as optional literal true and preserves it in the returned result. Regression cases exercise the actual host-restamp → parser functions for populated, empty, and unchanged/fingerprinted catalogs; old-host omission remains absent, and false/null/string/number/object marker values are rejected. Before the parser fix, these cases produced 8 failures; they now pass.

The same commit addresses the inline local-scanId leak separately. Final verification: 91 tests in 6 main parser/list-results/runtime-scanner/projection/fingerprint/RPC files and 24 tests in 4 mobile hook/model/action files passed; node, web, and mobile application typechecks, the mobile test-typecheck baseline ratchet (1114 files, 98 grandfathered), changed-lines code quality, and normal commit hooks passed. Raw mobile typecheck:tests still reports existing baseline typing debt. Tests ran with ORCA_BACKGROUND_LAUNCH=1 and a Node 24.22.0 runner.

No native-device, live-provider, full CI, or review-approval result is claimed.

@gentslava

Copy link
Copy Markdown
Contributor Author

The selected-owner /resume correction from the sibling review is also published here at 5748c44. This PR uses its existing explicit third RuntimeClientTarget API, preserving direct and adopted-owner recovery without importing the sibling's newer activation-helper feature. Known unroutable owners use existing feedback and retain the current chat; they cannot silently fall back to local.

The three-file adaptation passed all 41 whole affected suites (392 tests) with zero teardown errors, all four Bun CI typechecks, scoped quality, formatting, catalogs and normal hooks. The actual activation helper and its original explicit-target test remain unchanged. Earlier unqualified mechanical-port/fixture attempts are not reported as passing; complete upstream CI and live device/transport acceptance remain pending as stated in the description.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2


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: a75d5b0e-36c2-454d-b41c-c826adbcfcb0
Commits

Reviewing files that changed from the base of the PR and between dc20b0d and 5748c44.

Files selected for processing: 15
  • config/scripts/mobile-web-app/mobile-web-app-render.test.mjs
  • mobile/app/h/[hostId]/agent-history/[worktreeId].tsx
  • mobile/app/h/[hostId]/agent-history/[worktreeId].web.tsx
  • mobile/src/agent-history/MobileAgentSessionHistoryList.tsx
  • mobile/src/agent-history/MobileAgentSessionHistoryPanel.tsx
  • mobile/src/session/notification-pane-tab.ts
  • src/main/ai-vault/structured-conversation-navigation.test.ts
  • src/main/ai-vault/structured-conversation-navigation.ts
  • src/main/runtime/rpc/methods/ai-vault.test.ts
  • src/main/runtime/rpc/methods/ai-vault.ts
  • src/renderer/src/components/right-sidebar/AiVaultSessionVirtualList.keyboard.test.tsx
  • src/renderer/src/components/right-sidebar/ai-vault-session-resume-here.ts
  • src/renderer/src/lib/worktree-activation-structured-chat-surface.test.ts
  • src/shared/ai-vault-types.ts
  • src/shared/rpc-contract/ai-vault-params.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

gentslava added a commit to gentslava/orca that referenced this pull request Oct 26, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 26, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 26, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Clear the hidden search filter for conversation history. · MobileAgentSessionHistoryPanel.tsx:340

mobile/src/agent-history/MobileAgentSessionHistoryPanel.tsx:340
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Clear the hidden search filter for conversation history.

If this panel receives a conversationId after a user searches general history, query keeps its old value. Section building still applies that value, but this change hides the search input. A selected conversation can therefore show “No agent sessions” even when its session was loaded. Ignore query while conversationId is present, or clear it when the route changes.


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: 15baa803-9c7c-4919-974f-87fe0e81cc54
Commits

Reviewing files that changed from the base of the PR and between b28693b and b0642d5.

Files selected for processing: 6
  • mobile/src/agent-history/MobileAgentSessionHistoryPanel.tsx
  • mobile/src/agent-history/use-mobile-agent-history-state.ts
  • src/main/ai-vault/structured-session-ownership.test-support.ts
  • src/main/ai-vault/structured-session-ownership.test.ts
  • src/main/ai-vault/structured-session-ownership.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-resume-here.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

gentslava added a commit to gentslava/orca that referenced this pull request Oct 27, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 27, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 27, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 27, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 28, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 28, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 28, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 28, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 28, 2026
@gentslava
gentslava force-pushed the gentslava/upstream-mobile-conversations branch from ee29b01 to d90628d Compare October 28, 2026 09:23
@gentslava gentslava changed the title Show mobile conversations within projects instead of branch-first navigation Show mobile conversations within projects Oct 28, 2026
gentslava and others added 30 commits November 7, 2026 20:19
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The host screen now opens on project conversations, so the bots render check waited for workspace rows that only the advanced workspace view draws. Each case opens that view through More options first, and the page pins an English locale because the conversation copy follows the browser locale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream's agent filter and bottom bar filled MobileAgentSessionHistoryPanel.tsx past its 400-line limit beside this branch's single-conversation history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

[Feature]: Browse and resume project conversations directly on mobile

1 participant