Skip to content

refactor(core): sweep the AppHandle wrappers and parameters (P1-4 step 4) - #172

Merged
n8watkins merged 7 commits into
mainfrom
refactor/p14-sweep
Nov 28, 2026
Merged

n8watkins merged 7 commits into
mainfrom
refactor/p14-sweep

Conversation

@n8watkins

Copy link
Copy Markdown
Owner

P1-4 step 4 (sweep) of docs/CORE-SPLIT.md. No function in crates/scribe-core/src takes an AppHandle any more. Behavior is unchanged.

Commits, one per item of the step 4 list:

  1. Dictation chain: the unused _app of the output functions, the app of transcribe_recording_*, finish_selection_transform, finish_*_recording_with, execute_with, AppExecutor, DictationWorker::spawn_on(cell); hotkeys::start_transform gone (the worker calls start_transform_with); audio::start_recording_for_app, emit_recording_error and output::core_for gone with it.
  2. Settings chain: replace_hotkeys_with, AppEffects, apply_settings_change_with, patch_settings_now_with, set_launch_at_startup_with, patch_settings, the four hotkeys commands (now on off_main_core), the tray call; off_main and the settings wrappers (emit_changed, core_of, sync_launch_at_startup, set_launch_at_startup) gone. New test a_refused_startup_entry_leaves_the_setting_unchanged_and_sends_nothing (the AppEffects autostart rollback).
  3. File-transcription chain: file_transcribe calls whisper::transcribe_with_output_prefix_with; the wrapper and host_of gone; transcribe_file_with, self_test::run/spawn_with, the transcribe_file command and the self-test call lose the app; self_test::spawn gone.
  4. The remaining wrappers of the table (autostart, data_hygiene, dictation_state, status_file, state_server, test_audio, hotkeys setup/handle_shortcut, RemoteCommand::run, WarmTranscriber::new, three model_manager _with, and dictation_worker::submit, which lost its last caller in 3c).
  5. commands.rs, shell.rs, shell::install and its startup-order test entry, is_dev_flavor, display_name; stale comments; docs/CORE-SPLIT.md updated (3c merged, 4 in review).

Left for later steps: the tauri dependency (step 5), the _with suffixes (step 6), the seams of step 4b. No function was left without a caller.

Release-note: skip

🤖 Generated with Claude Code

…ed startup entry (P1-4 step 4)

Release-note: skip
… kept (P1-4 step 4)

Intra-doc links in autostart.rs named the deleted wrappers, comments in
host.rs, dictation_state.rs, state_server.rs, status_file.rs and
settings_store.rs named deleted functions or off_main, and CORE-SPLIT.md
still listed off_main. The refused-startup-entry test also checks that the
tray is not synced. Fixes the unresolved WarmTranscriber link in
incremental.rs.

Release-note: skip
@n8watkins
n8watkins merged commit 967b931 into main Nov 28, 2026
17 checks passed
@n8watkins
n8watkins deleted the refactor/p14-sweep branch November 28, 2026 06:05
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