Skip to content

Fix the code-review findings on the recent simplify commits - #436

Merged
alexkroman merged 2 commits into
mainfrom
claude/laughing-cori-sn6rfx
Nov 26, 2026
Merged

alexkroman merged 2 commits into
mainfrom
claude/laughing-cori-sn6rfx

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator
  • Docs: ARCHITECTURE.md and the engine README point at
    DictationClient.streamedBody; the README's duplicated
    AssemblyAITranscriber paragraph is gone.
  • A recording with no speech no longer offers Try Again, which would
    re-upload (and re-bill) the same audio; needsTranscription's doc names
    the no-speech case.
  • The /v2 async client shows only a documented error message, never a
    proxy's raw HTML (ErrorResponse.documentedMessage); dictation keeps the
    raw-body fallback.
  • PCMSchedule.unplayed leaves a late chunk's lead of silence out, so
    sealing a stopped clip no longer cuts audio the user heard.
  • Return is exempt from the three-separate-runs loop rule only in a plan
    that also tabs: three sends in a chat are a loop again.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01DS5B1WVp8B5EkRXQ4625rE

- Docs: ARCHITECTURE.md and the engine README point at
  DictationClient.streamedBody; the README's duplicated
  AssemblyAITranscriber paragraph is gone.
- A recording with no speech no longer offers Try Again, which would
  re-upload (and re-bill) the same audio; needsTranscription's doc names
  the no-speech case.
- The /v2 async client shows only a documented error message, never a
  proxy's raw HTML (ErrorResponse.documentedMessage); dictation keeps the
  raw-body fallback.
- PCMSchedule.unplayed leaves a late chunk's lead of silence out, so
  sealing a stopped clip no longer cuts audio the user heard.
- Return is exempt from the three-separate-runs loop rule only in a plan
  that also tabs: three sends in a chat are a loop again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DS5B1WVp8B5EkRXQ4625rE
Swift:
- TriggerKeyAction.title names each key action once; the Sounds tab,
  the main window's key rows and the Keys tab read it instead of three
  switches.
- The iPhone keyboard checks a known term with KeyTermList.contains, the
  rule the store dedupes by, and uses trimmedNonEmpty where it hand-rolled
  the trim; KeyEntryView's Connect button does the same.
- LibrarySection.emptyMessage drops two checks that were always true.
- Seven iPhone files no longer import AVFoundation they don't use.

Scripts:
- check.sh runs its five --self-test gates through one self_tested helper,
  lints with swift-format --parallel, and shards shellcheck across cores
  (7.7 s -> 2.5 s here).
- check-swift-size.sh greps once for type_body_length disables instead of
  once per measured type; its self-test now covers that disable.
- ios-lib.sh's ios_generate_project and ios_build_install replace seven
  copies of the generate line and three of the probe build-and-install.
- The swift-format edit hook resolves the tool through swift-format-lib.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DS5B1WVp8B5EkRXQ4625rE
@alexkroman
alexkroman enabled auto-merge November 26, 2026 22:50
@alexkroman
alexkroman added this pull request to the merge queue Nov 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 26, 2026
@alexkroman
alexkroman added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 79de3af Nov 26, 2026
22 checks passed
@alexkroman
alexkroman deleted the claude/laughing-cori-sn6rfx branch November 26, 2026 23:55
alexkroman pushed a commit that referenced this pull request Nov 27, 2026
#436's new asyncUndocumentedError test called scratchAudioFile(), which
this branch replaced with withScratchAudioFile/transcribeScratchFile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DS5B1WSxEQnVLdMQNCquvA
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