Skip to content

Strip liveness gate from AI Vault session delete - #13279

Merged
AmethystLiang merged 4 commits into
mainfrom
ai-vault-delete-no-liveness
Aug 10, 2026
Merged

AmethystLiang merged 4 commits into
mainfrom
ai-vault-delete-no-liveness

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Removed the process-roster liveness gate (getSessionLiveness, resolveAiVaultSessionLiveness, readAiVaultSessionIdentity) from the AI Vault session delete path — delete now proceeds with path validation + user confirmation only
  • Deleted session-liveness.ts entirely (only consumed by the delete path)
  • Removed getAiVaultSessionLiveness from OrcaRuntimeService and its IPC wiring through register-core-handlers → ai-vault.ts → ai-vault-delete.ts → session-delete.ts
  • Removed the renderer-side live-state hard-block (isSessionLive check in aiVaultSessionDeleteBlockedReason); kept path/host/synthetic/agent gates
  • Removed AiVaultSessionLiveness type and session-live/session-liveness-unknown rejection codes from shared types
  • Deleted liveness repro tests and session-liveness unit tests; updated remaining tests to remove liveness assertions

Test plan

  • npm run typecheck passes (all three tsconfig targets)
  • session-delete.test.ts passes (14 tests — path validation, trash, WSL, companions)
  • ai-vault.test.ts passes (43 tests — IPC cache invalidation, multi-host leg cache)
  • ai-vault-session-deletability.test.ts passes (7 tests — host/synthetic/agent gates)
  • Manual: delete a running session from the AI Vault panel — should proceed after confirmation instead of being blocked

Made with Orca 🐋

Delete now requires only path validation + user confirmation — no process
roster, no liveness check, no quiescence, no ownership ledger.

Co-authored-by: Orca <[email protected]>
@coderabbitai

coderabbitai Bot commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c72feb32-8448-492d-a19e-08e5c73de180

📥 Commits

Reviewing files that changed from the base of the PR and between b2e29a2 and a7ef72b.

📒 Files selected for processing (21)
  • config/reliability-gates.jsonc
  • src/main/ai-vault/session-delete-liveness.repro.test.ts
  • src/main/ai-vault/session-delete.test.ts
  • src/main/ai-vault/session-delete.ts
  • src/main/ai-vault/session-liveness.test.ts
  • src/main/ai-vault/session-liveness.ts
  • src/main/ipc/ai-vault-delete.ts
  • src/main/ipc/ai-vault.test.ts
  • src/main/ipc/ai-vault.ts
  • src/main/ipc/register-core-handlers.ts
  • src/main/runtime/orca-runtime.ts
  • src/renderer/src/components/right-sidebar/AiVaultSessionRow.tsx
  • src/renderer/src/components/right-sidebar/ai-vault-session-deletability.test.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-deletability.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/shared/ai-vault-session-deletion.ts
  • tests/e2e/terminal-macos-system-key-remap.spec.ts

📝 Walkthrough

Walkthrough

AI Vault session deletion no longer checks session liveness or rejects live and unknown-liveness sessions. The liveness module, runtime method, related dependencies, and liveness rejection types were removed. IPC deletion wiring now passes only deletion data and cache invalidation dependencies. Renderer deletion blocking no longer uses live state. Related tests were updated or removed.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the main changes and testing, but it omits the required Screenshots, AI Review Report, Security Audit, and Notes sections. Add all required template sections, including visual-change status, AI review findings with cross-platform checks, security audit results, and platform-specific notes.
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: removing the AI Vault session-delete liveness gate.
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.

Session delete no longer checks process liveness, so drop the
manifest entry that still referenced the deleted test files.
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@AmethystLiang
AmethystLiang merged commit b075a95 into main Aug 10, 2026
1 of 44 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* Strip liveness gate from AI Vault session delete

Delete now requires only path validation + user confirmation — no process
roster, no liveness check, no quiescence, no ownership ledger.

Co-authored-by: Orca <[email protected]>

* Remove obsolete AI Vault liveness delete reliability gate

Session delete no longer checks process liveness, so drop the
manifest entry that still referenced the deleted test files.

* minor fix

---------

Co-authored-by: Orca <[email protected]>
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