Repository navigation
Explain the paired key refreshes and share ValueBox with ungated tests - #417
Merged
Merged
Conversation
…ed tests A cleanup review read the app's paired account and API-key refreshes as redundant, since AssemblyAIAccount.updateStatus refreshes the key itself. It doesn't when the session item is unavailable: it returns before that call. Say so at the early return and at both app call sites (APIKeyStepView's onAppear and ResetSection.reset) so the next pass doesn't remove them. The same review flagged Finished, a Mutex<Bool> with set(), as a copy of ValueBox<Bool>. It existed only because ValueBox sat wholly inside #if os(macOS) for one CGKeyCode double, while its user, StreamingPCMPlayerTests, is ungated. Gate just that extension (and its AppKit import), leave the generic cell importing only Synchronization, drop the unused Testing/BlurtEngine imports, delete Finished, and use ValueBox(false) in StreamingPCMPlayerTests. No behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DS5B1Vp9Andd7LBEDhGKeC
Collaborator
Author
|
The The same error hit A likely fix: Generated by Claude Code |
2 of 3 tasks
alexkroman
enabled auto-merge
November 25, 2026 21:11
2 of 3 tasks
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Nov 25, 2026
No content conflicts: #398 moved AssemblyAIAccount.swift into BlurtAssemblyAI, and git carried this PR's comment at the early return along with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DS5B1Vp9Andd7LBEDhGKeC
alexkroman
enabled auto-merge
November 25, 2026 21:40
alexkroman
pushed a commit
that referenced
this pull request
Nov 25, 2026
One conflict, in .claude/hooks/swift-budgets.sh: #428 added the lint-lite rules inside the per-script scope cases this PR removed. The size and clock checks still narrow their own arguments; check-swift-lint- lite.sh scans what it's given, so the hook keeps one scope case for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DS5B1Vp9Andd7LBEDhGKeC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
A cleanup review flagged two things as duplication. Both turned out to be false positives, so this makes the code say why.
AssemblyAIAccount.updateStatusrefreshes the API key itself, but it returns early when the session Keychain item is.unavailable, before that call. So the app's ownapiKey.refreshStatus()calls inAPIKeyStepView'sonAppearandResetSection.reset()aren't redundant. A comment at the early return and at both call sites now says so.FinishedvsValueBox<Bool>.Finished(aMutex<Bool>withset()) existed only becauseValueBoxsat entirely inside#if os(macOS)for oneCGKeyCodetest double, whileStreamingPCMPlayerTestsis ungated. Now only that extension and itsAppKitimport are gated. The generic cell imports justSynchronization, and the unusedTesting/BlurtEngineimports are gone.Finished.swiftis deleted andStreamingPCMPlayerTestsusesValueBox(false).Behaviour change: none.
How it was tested
scripts/check.sh --portablepasses, as doscripts/check-swift-size.shon the edited files andscripts/check-test-clock.sh.This was written in a Linux sandbox with no Swift toolchain, so CI on macOS verifies the build, tests, swift-format, swiftlint and periphery.
ValueBox.swiftisn't in any iPhone target:App/BlurtiOS/project.ymlshares onlyStubs/TestClock.swift.scripts/check.shpasses (or CI will, if I'm not on a Mac)I read AGENTS.md and this doesn't reintroduce anything
deliberately removed
Docs updated if behavior changed
Generated by Claude Code