Skip to content

fix: address PR #1059 review feedback on spinner - #1060

Merged
cdalar merged 3 commits into
mainfrom
fix/spinner-copilot-review
Aug 27, 2026
Merged

cdalar merged 3 commits into
mainfrom
fix/spinner-copilot-review

Conversation

@cdalar

@cdalar cdalar commented Aug 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Closes the spinner's done channel synchronously in the non-terminal path instead of via a throwaway goroutine, and clears s.program there too, so Stop() can't block waiting on scheduling or later Quit() a stale program.

Addresses both review comments left by GitHub Copilot on #1059 after it merged:

Note: an earlier commit on this PR also deleted docs/branches_report.md, believing it had snuck in via #1059. Codex review correctly flagged that this file was actually added independently by commit 11ec412 (#1045), unrelated to the spinner fix — it has been restored.

Test plan

  • go build ./...
  • go test ./internal/ui/...

cdalar added 2 commits August 27, 2026 23:34
Addresses PR #1059 review feedback: closing done via a goroutine in the
non-terminal path was pointless (nothing async happens) and left a stale
program reference around; also drops the unrelated branches_report.md
that snuck into that PR.
Addresses PR #1059 review feedback: spawning a goroutine just to close
done was pointless (nothing async happens) and left s.program pointing
at a stale value, so Stop() could later Quit() a program from a prior run.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c3de557245

ℹ️ 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".

Comment thread docs/branches_report.md Resolved
It was added independently in commit 11ec412 ("docs: update branches
report (#1045)"), not by PR #1059 as this PR's earlier commit assumed —
deleting it here was based on mistaken provenance. Flagged by Codex
review.

cdalar commented Aug 27, 2026

Copy link
Copy Markdown
Owner Author

Good catch — verified: docs/branches_report.md was added by commit 11ec412 ("docs: update branches report (#1045)"), not by #1059. Restored the file in 0429d58; this PR now only touches the spinner fix.


Generated by Claude Code

@cdalar
cdalar merged commit ce28394 into main Aug 27, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

⌂ 换网址