Skip to content

Coordinator: a dictation the processors empty leaves the last transcript as it was - #74

Merged
dinooo13 merged 1 commit into
mainfrom
tests/empty-dictation-last-transcript
Oct 17, 2026
Merged

dinooo13 merged 1 commit into
mainfrom
tests/empty-dictation-last-transcript

Conversation

@dinooo13

Copy link
Copy Markdown
Owner

Part of #73, point 7.

The issue asked whether a dictation the processors reduce to nothing (fillers only, say) should leave the previous "Last: …" menu line. Decision: keep it. This PR pins that behaviour with a test and changes no production code.

What

aDictationTheProcessorsEmptyLeavesTheLastTranscriptAlone dictates once with a dictionary rule that turns the engine's "hello world" into "first", then changes the rule to empty the same text and dictates again. The second dictation pastes nothing, the coordinator goes back to idle, and lastTranscript is still "first".

The first dictation's processed text is deliberately different from the engine's raw text. Otherwise the test could not tell "kept the previous one" from "showed the raw text".

Verified

  • Mutation check: with lastTranscript = transcript put back before the pipeline (the old raw assignment), the test fails on lastTranscript?.text == "first".
  • swift build and swift test (602 tests) green.
  • docs/ARCHITECTURE.md, "Dictation flow", step 3 already says it plainly ("a dictation the processors empty pastes nothing and leaves it as it was"), so the docs are unchanged.

Not on the release path: test only.

🤖 Generated with Claude Code

…ipt as it was

Pins the behaviour #73 asked to confirm: the menu's "Last" line keeps the
previous dictation instead of showing the engine's raw text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dinooo13
dinooo13 merged commit 915c033 into main Oct 17, 2026
1 check passed
@dinooo13
dinooo13 deleted the tests/empty-dictation-last-transcript branch October 17, 2026 10:07
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