Repository navigation
fix(automation): recheck agent ownership before prompting - #352
Merged
Merged
Conversation
Co-authored-by: Codex <noreply@openai.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Revalidate the caller, target project, pane, session and agent identity after preparing a review snapshot and before sending an agent prompt. A pane moved to another project or replaced during that suspension now rejects the prompt instead of receiving stale input; successful responses describe current ownership.
GitHub Project
PR Type
Validation
Status: passed
Command:
python3 -B mac/tests/test_agent_prompt_scope.pyResult: 67 scenarios passed. The same tests against b291210 produce 194 failed assertions, including cross-project input. Coverage includes caller and target moves, closed or replaced sessions, reused UUIDs, aliases, agent identity and state changes, and successful prompts.
Status: passed
Command:
make run DERIVED_DATA=<temporary-build>;ZSHELL_TEST_DERIVED_DATA=<temporary-build> python3 -B mac/tests/test_automation_events.pyResult: Full macOS Debug build and launch passed. Both Alacritty and Ghostty passed real PTY, authenticated socket and CLI checks. The new production regression moves a pane during review preparation, verifies rejection without writing input, then restores ownership and verifies exactly one accepted prompt.
Status: passed
Command:
make format;xcrun swift-format lint --strict --configuration .swift-format mac/tests/AutomationEventTests.swift mac/tests/AgentPromptScopeTests.swift mac/zshell/ZshellAutomationRouter.swift;git diff --check;bash .github/scripts/check-repository-hygiene.shResult: Formatting, whitespace and repository hygiene checks passed. Independent review found no remaining blocking issue.
Status: not run
Reason: CI is not awaited for this maintainer-authorized change.
Risk and Rollback
Related Issue
None
AI Attribution