Skip to content

fix(agent): keep project drafts usable across worktrees - #6890

Merged
M4n5ter merged 1 commit into
rust-previewfrom
codex/project-draft-selection
Nov 14, 2026
Merged

M4n5ter merged 1 commit into
rust-previewfrom
codex/project-draft-selection

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Nov 14, 2026

Copy link
Copy Markdown
Member

Summary

A draft opened from one project checkout could become unusable when a conversation in another checkout updated the project's last-used time. Draft completion and conversation creation now use the project ID and the selected path. The Host validates the current project and directory, and the creation transaction checks the selected location without comparing the full project record.

Verification

  • macOS desktop with two Git worktrees sharing one project. Opened a draft in the original checkout, created a conversation in the second worktree, then sent the original draft and received a loopback model reply. The Host receipt confirmed project selection and creation at the original path.
  • After the second creation, the Host's draft file completion returned project-draft-proof.txt from the original checkout.
  • Five conversation-group tests and contract, type and targeted format checks passed.

AI use

  • Generative tooling made a substantive contribution

OpenAI Codex implemented and verified the change.

Checklist

  • Format, typecheck and affected conversation-group tests pass locally
  • Behavior change and desktop verification described above

@github-actions github-actions Bot added the effort/M Under 500 readable lines label Nov 14, 2026
@M4n5ter
M4n5ter merged commit 5480243 into rust-preview Nov 14, 2026
26 of 31 checks passed
@M4n5ter
M4n5ter deleted the codex/project-draft-selection branch November 14, 2026 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/M Under 500 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant