orca/mobile/src/agent-history
Brennan Benson 50f46889d9
fix(ai-vault): resume a bridged Codex session under the selected account's home (#11224)
* fix(ai-vault): resume a bridged Codex session under the selected account's home

The account session bridge hardlinks every rollout into each per-account
CODEX_HOME, and vault dedup keeps the lexicographically-smallest alias, so
Resume could pin an inline CODEX_HOME naming a peer account — running the
session under that account's auth.json and quota. At resume time the owning
host now substitutes the selected account's home when it holds the same
rollout at the same sessions-relative path, declining on any uncertainty so
resume degrades to today's behavior instead of failing.

* fix(ai-vault): repin dropped sessions without a cwd instead of resuming under the wrong account

The drag payload only carried sessionCwd when session.cwd was truthy, so a
null-cwd codex session dropped onto a pane silently fell back to the prebuilt
command - which pins the wrong account's CODEX_HOME, the exact defect this PR
eliminates on the other resume surfaces.

- Serializer always sends sessionCwd (null when the session has no cwd), so
  absence now only means an older-serializer payload.
- The repin rebuild accepts a null cwd (the builders already omit the cd
  prefix), matching the sidebar Resume/Copy paths which repin regardless of cwd.
- An unrepinnable payload (absent sessionCwd) now fails loudly with guidance
  instead of silently resuming under the wrong account's home.
2026-07-28 15:18:07 -07:00
..
MobileAgentSessionHistoryIcon.tsx Show agent session history on mobile (#6786) 2026-07-10 13:48:10 -07:00
MobileAgentSessionHistoryList.tsx Show agent session history on mobile (#6786) 2026-07-10 13:48:10 -07:00
MobileAgentSessionHistoryPanel.tsx fix(ai-vault): resume a bridged Codex session under the selected account's home (#11224) 2026-07-28 15:18:07 -07:00
agent-history-capability.ts Show agent session history on mobile (#6786) 2026-07-10 13:48:10 -07:00
agent-history-current-worktree-badge.ts Show agent session history on mobile (#6786) 2026-07-10 13:48:10 -07:00
agent-history-resume-target.test.ts Show agent session history on mobile (#6786) 2026-07-10 13:48:10 -07:00
agent-history-resume-target.ts Show agent session history on mobile (#6786) 2026-07-10 13:48:10 -07:00
agent-history-scope-paths.test.ts Show agent session history on mobile (#6786) 2026-07-10 13:48:10 -07:00
agent-history-scope-paths.ts Show agent session history on mobile (#6786) 2026-07-10 13:48:10 -07:00
agent-history-sections.ts Show agent session history on mobile (#6786) 2026-07-10 13:48:10 -07:00
agent-history-session-card.test.ts Show agent session history on mobile (#6786) 2026-07-10 13:48:10 -07:00
agent-history-session-card.ts Show agent session history on mobile (#6786) 2026-07-10 13:48:10 -07:00
agent-history-session-worktree.test.ts Show agent session history on mobile (#6786) 2026-07-10 13:48:10 -07:00
agent-history-session-worktree.ts Show agent session history on mobile (#6786) 2026-07-10 13:48:10 -07:00
agent-history-styles.ts Show agent session history on mobile (#6786) 2026-07-10 13:48:10 -07:00
use-mobile-agent-history-state.ts Show agent session history on mobile (#6786) 2026-07-10 13:48:10 -07:00
worktree-navigation-actions.ts Show agent session history on mobile (#6786) 2026-07-10 13:48:10 -07:00