Repository navigation
Sync Community Edition task evaluation and shared forms - #240
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5b0477e1bf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| async def write_local_bytes(path: str, data: bytes) -> None: | ||
| """Write a host file, creating its parent folders, in a worker thread.""" | ||
| await asyncio.to_thread(_write_bytes, path, data) |
There was a problem hiding this comment.
Finish host-file writes before propagating cancellation
In desktop local mode, stopping or steering a tool while this await is pending cancels the coroutine but does not stop the _write_bytes worker thread. Both Write and Edit consequently release file_mutation_lock(physical) while the old write is still running, allowing a replacement operation to acquire the lock and modify the same file. The cancelled write can then overwrite the newer content; reproducing this with a delayed worker left old on disk after the replacement write had successfully saved new. Wait for the worker write to finish before propagating cancellation and releasing the mutation lock, and cover cancellation followed by another write in a regression test.
Useful? React with 👍 / 👎.
Purpose and behavior
Change walkthrough
src/backend/api/routes/v1/chats/evaluations.pyandsrc/backend/core/chat/evaluation.pyto the chat evaluation card and reminder. Mid-tool steering usessrc/backend/core/llm/runtime/tool_interrupt.py. Generated artifacts pass throughsrc/backend/core/files/artifacts/service.pyand the personal naming policy insrc/backend/core/files/edition.py. Shared forms usesrc/frontend/src/components/common/FormLayout.tsx.Risk and compatibility
Verification
Recovery
Review follow-up
Community checklist