Skip to content

fix(macos): demo-blocking polish + stable dev signing#5

Merged
PCcoding666 merged 1 commit into
masterfrom
fix/demo-stability
Jul 2, 2026
Merged

fix(macos): demo-blocking polish + stable dev signing#5
PCcoding666 merged 1 commit into
masterfrom
fix/demo-stability

Conversation

@PCcoding666

Copy link
Copy Markdown
Owner

Prep for recording a demo video. Fixes three on-camera issues + the rebuild re-auth pain.

Fixes

  • Mic fallback no longer hidden by an error: checkPermission was a query with side effects (set a verbose red-banner error + opened System Settings) that fired even when the VM was about to fall back to microphone-only. Now a pure query; VM owns the decision.
  • No more false "Ollama stopped" on launch: VM initializer now probes checkStatus()/checkHealth() so the indicator is correct immediately.
  • Stable dev signing: ad-hoc signatures change every build → TCC permissions invalidated → re-authorize every time. package-app.sh signs with a stable LCT Dev identity when present (ad-hoc fallback for CI); scripts/dev-cert.sh creates it once.

Investigated, not reproduced

Launch-time auto-capture appeared 4×, then 5/5 idle on clean launch. Likely lingering instances during rapid test cycling. Latent risk noted: window-close-doesn't-quit + global hotkeys → possible multi-instance confusion (follow-up: single-instance guard).

Verified

  • Strict-concurrency build clean; 123 tests pass
  • Ollama indicator correct on launch (computer-use); mic fallback confirmed in logs

🤖 Generated with Claude Code

Three issues that would look bad on camera, plus the signing fix for the
"re-authorize on every rebuild" pain:

- AudioCaptureService.checkPermission was a query with side effects: it set
  a verbose lastError (surfaced as a red banner) and opened System Settings
  on its own. That fired even when the ViewModel was about to fall back to
  microphone-only capture, so screen-recording denial showed a scary error
  instead of silently degrading. Made it a pure query; the VM now owns the
  decision (mic fallback vs. a concise actionable notice).

- The Ollama status indicator showed "stopped" on launch until first use,
  because nothing probed it. Probe checkStatus()/checkHealth() in the VM
  initializer so the indicator reflects reality immediately.

- Stable local code-signing identity: ad-hoc signatures change every build,
  invalidating TCC permissions and forcing re-authorization each time.
  package-app.sh now signs with a stable "LCT Dev" identity when present
  (ad-hoc fallback for CI), and scripts/dev-cert.sh creates it once.

Also investigated an intermittent launch-time auto-capture: not reproducible
on clean launch (5/5 idle); appears to have been lingering instances during
rapid test cycling. Latent risk noted: window-close-doesn't-quit + global
hotkeys could allow multi-instance confusion (follow-up: single-instance guard).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@PCcoding666 PCcoding666 merged commit d297413 into master Jul 2, 2026
2 checks passed
@PCcoding666 PCcoding666 deleted the fix/demo-stability branch July 2, 2026 08:45
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