Repository navigation
fix(coderd): stop the chat todo watcher quietly when its client leaves - #105
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. |
Closing and reopening only to make GitHub recompute the merge ref against current main ( |
The merge ref now points at current main ( |
Closing and reopening only to make GitHub recompute the merge ref against current main ( |
The merge ref now points at current main ( |
Closing and reopening only to make GitHub recompute the merge ref against current main ( |
The merge ref now points at current main ( |
Closing and reopening only to make GitHub recompute the merge ref against current main ( |
The merge ref now points at current main ( |
Merge evidence for head
|
Follow-up to #87's watcher in
coderd/fork_chat_todos.go. When a browser closes the chat page while a change event or resync tick is pending, the loop wakes, the todo read fails withcontext canceled, and the watcher logs it at Error before looping back to exit. The daily server logged two suchcoderd.chat_todos_watchererrors from closed chat pages.On a read error the loop now returns when the request context is done. Real database errors still log at Error.
No new test: reproducing the race needs the request context canceled between the wake-up and the read, which the existing watcher tests cannot do without a fault-injecting store. The existing
TestForkChatTodos*tests pass.