fix(codex): a pod-less Codex seat's restore keeps its git dirs writable, so it can still commit #2023
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 283 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.338
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2023"
general
weight: 0.35
openrig-review
What this changes
A pod-less Codex seat restored through
CodexResumeAdapter(byrig up --existing, or a restore after a reboot) now gets the same git metadata--add-dirs that #2000 gave its fresh, resume and fork launches, so it can still commit in its worktree. Seats in a pod restore through the launch adapter, which #2000 already fixed.CodexResumeAdapter, which serves only seats without a pod, added none of them. A default workspace-write seat restored that way couldn't write its worktree's.git, and commits failed, which is the bug #2000 fixed for the other launch paths.How
resolveCodexGitAddDirs), wired in at startup:- an ordinary repository gets
<cwd>/.git;- a linked worktree gets its worktree and common git dirs, never the
.gitfile.Tests
- an ordinary repository's restore adds
<cwd>/.git, the same as its fresh launch, after the id, and the id still parses from a path with a space;- a linked worktree's restore adds its worktree and common git dirs, never the
.gitfile.🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Bug Fixes
Resuming a conversation in a standard workspace now includes the relevant Git directories, helping preserve Git access. This also works with linked worktrees and paths containing spaces.
* Resumes using a named profile remain unchanged and do not add these directories.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->