Skip to content

fix(ai-vault): quote queued OMP resumes for Windows shells - #7628

Merged
AmethystLiang merged 1 commit into
mainfrom
fix/ai-vault-omp-windows-resume
Jul 7, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
fix/ai-vault-omp-windows-resume

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Summary

  • pass the resolved Windows live-shell family into AI Vault fallback resume command generation
  • keep OMP resume-by-transcript-path while quoting queued Windows commands for PowerShell/Git Bash/cmd correctly
  • add regression coverage for default PowerShell OMP resumes and cmd.exe behavior

Testing

  • pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/ai-vault-resume-command.test.ts src/shared/ai-vault-resume-command.test.ts
  • pnpm typecheck
  • pnpm exec oxlint src/shared/ai-vault-types.ts src/shared/ai-vault-resume-command.test.ts src/renderer/src/lib/ai-vault-resume-command.ts src/renderer/src/lib/ai-vault-resume-command.test.ts
  • pnpm exec oxlint --type-aware --config config/oxlint-switch-exhaustiveness.json src/shared/ai-vault-types.ts src/shared/ai-vault-resume-command.test.ts src/renderer/src/lib/ai-vault-resume-command.ts src/renderer/src/lib/ai-vault-resume-command.test.ts --quiet
  • git diff --check

@AmethystLiang
AmethystLiang merged commit 4cbf699 into main Jul 7, 2026
1 of 2 checks passed
@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: c7a768bd-511d-41c3-ac26-7aac21321e0a

📥 Commits

Reviewing files that changed from the base of the PR and between 0b4196f and cd86328.

📒 Files selected for processing (4)
  • src/renderer/src/lib/ai-vault-resume-command.test.ts
  • src/renderer/src/lib/ai-vault-resume-command.ts
  • src/shared/ai-vault-resume-command.test.ts
  • src/shared/ai-vault-types.ts

📝 Walkthrough

Walkthrough

Changes

buildAiVaultResumeCommand was updated to accept an optional shell parameter, which when present drives quoting of the resume session argument via quoteStartupArg instead of quoteShellArg/platform, and is forwarded to buildAiVaultResumeShellCommand. The renderer's fallback resume-startup path now passes queuedShell alongside codexHome to this function. Tests in both shared and renderer suites were added/updated to verify PowerShell-style (Set-Location, quoted omp --resume path using session.filePath) and cmd.exe-style resume command formatting.

Sequence Diagram(s)

Not applicable; changes are localized function-argument and quoting logic without cross-component orchestration.

Estimated code review effort: 3/5 — moderate, involves conditional logic changes and shell-specific quoting behavior across shared and renderer layers.

Related issues: None specified.

Related PRs: None specified.

Suggested labels: none

Suggested reviewers: none

🐰 A hop, a shell, a quote just right,
Set-Location leads the way tonight,
Omp resumes from filePath true,
PowerShell and cmd both pull through,
Tests confirm the carrot's in sight.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers Summary and Testing, but it omits the required Screenshots, AI Review Report, Security Audit, and Notes sections. Add the missing template sections, including screenshots or 'No visual change', an AI review report, a security audit, and platform-specific notes.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed Title clearly matches the main change: quoting queued OMP resume commands for Windows shells.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

brennanb2025 added a commit that referenced this pull request Jul 10, 2026
…ts-to-mobile

Reconciles the mobile aiVault.listSessions RPC with main's runtime-host
scanning (#7631), OMP sessions (#7618/#7628), host-aware attribution
(#7367), and zero-turn recovery (#7889):

- One aiVault.listSessions serves mobile (no executionHostId), the desktop
  parent, and web clients: bounded params kept, results served from the
  shared host-local cache and restamped per-caller at the RPC edge.
- Desktop's runtime-host RPC client caps scopePaths to the shared bound so
  large desktops degrade gracefully instead of failing validation.
- Desktop IPC local scope delegates to the shared cache module (single
  cache with the RPC path); ssh/runtime/all merges keep main's outer cache.
- Main's zero-turn empty-session semantics and ExecutionHostId-typed
  project attribution replayed onto the /shared lifted filter core.
- Mobile resume forwards session.filePath so OMP resumes by absolute
  transcript path (desktop parity).

Co-authored-by: Orca <[email protected]>
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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.

1 participant