Skip to content

Say a report's task is settled once, however often it waits - #56

Merged
enowdev merged 1 commit into
mainfrom
fix/goa-settled-note-once
Nov 10, 2026
Merged

enowdev merged 1 commit into
mainfrom
fix/goa-settled-note-once

Conversation

@enowdev

@enowdev enowdev commented Nov 10, 2026

Copy link
Copy Markdown
Owner

A follow-up to #53 (change 6, "Tell GOA a report even once its task is settled").

What was wrong. A report of a task settled before GOA took it is told with a note: "(Its task is settled already: nothing to settle, only to read.)". goaLinesToSay added that note to the line's text each time it handed the line out (daemon/goa.go). A line GOA can't take yet goes back to wait with the note already in it: goaFlush when the composer isn't sure to be empty (daemon/goa_inject.go), and goaTakeAtStop (daemon/goa_stop.go). So each later try added the note again. It piled up in goa-tell.json and in what GOA was finally told, most of all where GOA can't be typed into for a long time.

Fix. The note is added only when the text doesn't already end with it. TestGOASettledNoteSaidOnce puts a settled report back three times and expects the note exactly once. It fails without the fix (the note shows three times).

Tested: nice -n 15 go test -p 2 ./daemon/... passes; go vet ./daemon and GOOS=windows go vet ./daemon are clean.

Separately: TestImageMentionMouseSelection, red on ubuntu in #53's last CI run, looks flaky, not broken. On main (e9094a5), go test ./ui/notesview -count=20 -run TestImageMentionMouseSelection passed 20 of 20, twice (40 runs). It also passed on ubuntu in #54's CI, which is based on the same main. I didn't change it here; the CI failure was the click not selecting the mention (image_blocks_test.go:170, an empty rect), which suggests a timing issue in the CI runner. That is inferred from the output, not reproduced.

🤖 Generated with Claude Code

A report of a task settled before GOA took it is told with a note saying
so (#53). The note was added each time the line was handed out, and a line
GOA couldn't take yet goes back to wait with it in its text, so the note
came again at each try: in goa-tell.json and in what GOA was finally told.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: enowdev <enowdev@gmail.com>
@enowdev
enowdev merged commit 7d1743b into main Nov 10, 2026
3 of 4 checks passed
@enowdev
enowdev deleted the fix/goa-settled-note-once branch November 10, 2026 20:02
@enowdev enowdev mentioned this pull request Nov 10, 2026
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.

1 participant