GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — chat: do not broadcast empty messages on Enter (#3273) by dezren39 · Pull Request #3743 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 43 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@codex review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 0d0e46ff3a
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| p.Send(enter) // must broadcast exactly that text, once | ||
| p.Send(tea.KeyMsg{Type: tea.KeyCtrlC}) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Wait for broadcast delivery before quitting the program
If the broadcast goroutine is delayed, Ctrl-C can terminate the program before the real message reaches its history. app.send in pkgs/chat/main.go dispatches through go p.Send(msg), so the synchronous Enter send only orders the key events, not the resulting chat message. This can intermittently leave final.messages empty and fail the test even with the correct guard. Synchronize on delivery or processing of the broadcast before sending Ctrl-C.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closing as duplicate of PR #3755 (queue protocol §8 disposition, from task 7432 triage of issue #3273, 2026-11-03). Both PRs implement the same task 5695 fix. PR #3755 is canonical — it is the PR task 5695 completed with. Before closing, I diffed this PR against PR #3755 and posted the full salvage note on PR #3755: the Branch |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
chat: pressing Enter on an empty input broadcasts an empty message to every session
There was an error while loading. Please reload this page.