Fix #63: Save of settings failed #66

Merged
SaschaFuksa merged 1 commit from batch/63 into master 2026-04-22 15:43:07 +00:00
Owner
No description provided.
Fix #64: Record Button still not working
Some checks failed
CI / lint (pull_request) Has been cancelled
CI / test (pull_request) Has been cancelled
daad4eaf06
Root cause: startRecording() silently caught exceptions without
surfacing errors to the user, making the button appear broken
when the backend call failed or threw. Since the #error element
was removed in the UI redesign, the error was completely invisible.

Changes:
- Add explicit error message to status element (' ' + err.message)
  so the user can see why recording didn't start
- Add HTTP status to the generic 'Failed to start session' message
- Show error in debugInfoEl (visible in current-session-panel) when available
- Clean up UI state (remove 'recording' class) on error
- Add recordBtnClick() wrapper for onclick attribute as belt-and-suspenders
  in addition to the addEventListener
- Extract onclick to HTML for maximum compatibility
Fix #63: Save settings to writable /app/settings dir instead of read-only mount
Some checks failed
CI / lint (pull_request) Has been cancelled
CI / test (pull_request) Has been cancelled
08c4aa7007
The settings.yaml is mounted read-only (:ro) in Docker. Writing to it causes
OSError: [Errno 30] Read-only file system. Instead, write to
/app/settings/settings.yaml (a Docker volume mount) and read the read-only
mount as the source of truth for existing values.

Changes:
- update_settings() now reads from /app/settings.yaml (read-only mount) and writes
  to /app/settings/settings.yaml (writable volume)
- docker-compose.yml mounts ./settings as /app/settings for persistence
- No changes to get_settings() - still reads from in-memory app_config
Tasch self-assigned this 2026-04-22 15:12:37 +00:00
SaschaFuksa deleted branch batch/63 2026-04-22 15:43:07 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Tasch/whisper-transcribe!66
No description provided.