Skip to content

chore: harden startup environment and simplify worker paths#41

Merged
TimInTech merged 3 commits into
mainfrom
chore/fable5-simplification-pass
Jul 4, 2026
Merged

chore: harden startup environment and simplify worker paths#41
TimInTech merged 3 commits into
mainfrom
chore/fable5-simplification-pass

Conversation

@TimInTech

Copy link
Copy Markdown
Owner

Summary

This PR combines one pre-existing local hardening commit with the reviewed Fable-5 simplification pass.

Pre-existing before Fable 5

  • 56debb9test: cover startup display environment
    • removes ROADMAP.md from the repository
    • adds startup/display environment coverage
    • updates setup documentation and small startup-environment handling

Fable-5 simplification pass

  • 9361265 — removes a broken duplicated API-key pre-check from _TranscribeWorker

    • fixes a real user-facing error path where missing API keys could surface as an AttributeError
    • lets LLMService report its own missing-key message with the configured env-var name
    • adds a regression test
  • 4c070f8 — deduplicates worker thread wiring and chat-completion calls

    • extracts shared Compose worker launch wiring
    • extracts shared LLM chat-completion helper
    • keeps behavior unchanged while reducing duplicate logic

Verification

  • python3 -m compileall app tests
  • QT_QPA_PLATFORM=offscreen WHISPER_GUI_TESTS=1 python -m pytest -q
  • git diff --check
  • git status --short
  • git ls-files ROADMAP.md

Result before push:

  • 443 passed
  • working tree clean
  • ROADMAP.md not tracked
  • no secrets
  • no Vault changes
  • no README/screenshot/asset changes
  • no Vocalinux-derived code, tests, text, or structure

Scope

Not touched:

  • Hotkey handling
  • State guard
  • Whisper/transcription pipeline
  • PasteService security model
  • Installer/systemd
  • Vocalinux/whisper.cpp/VAD/IBus/Voice Commands
  • Vault files
  • Secret files

Merge note

Do not merge before CI is green and final approval is given.

TimInTech added 3 commits July 2, 2026 18:47
Der Pre-Check referenzierte self.config, das im Worker nicht existiert.
Bei fehlendem API-Key sah der Nutzer dadurch einen AttributeError statt
des Env-Var-Hinweises. LLMService.rewrite() meldet den fehlenden Key
bereits selbst korrekt; der doppelte Check entfällt ersatzlos.
Regressionstest deckt den Fehlerpfad ab.
ComposeWindow: _start_worker und _start_worker_raw teilten 13 Zeilen
identisches QThread-Wiring; jetzt gemeinsamer _launch_worker-Helper.
LLMService: dampf_ablassen, text_improver, emoji_text und rewrite_raw
wiederholten denselben Completion-Aufruf inkl. Leerantwort-Check;
jetzt gemeinsamer _chat_completion-Helper. Verhalten unverändert.
@TimInTech TimInTech merged commit ea63f07 into main Jul 4, 2026
7 checks passed
@TimInTech TimInTech deleted the chore/fable5-simplification-pass branch July 4, 2026 13:00
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