Repository navigation
refactor(core): sweep the AppHandle wrappers and parameters (P1-4 step 4) - #172
Merged
Merged
Conversation
Release-note: skip
…ed startup entry (P1-4 step 4) Release-note: skip
…step 4) Release-note: skip
Release-note: skip
…pers (P1-4 step 4) Release-note: skip
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
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.
P1-4 step 4 (
sweep) of docs/CORE-SPLIT.md. No function incrates/scribe-core/srctakes anAppHandleany more. Behavior is unchanged.Commits, one per item of the step 4 list:
_appof the output functions, theappoftranscribe_recording_*,finish_selection_transform,finish_*_recording_with,execute_with,AppExecutor,DictationWorker::spawn_on(cell);hotkeys::start_transformgone (the worker callsstart_transform_with);audio::start_recording_for_app,emit_recording_errorandoutput::core_forgone with it.replace_hotkeys_with,AppEffects,apply_settings_change_with,patch_settings_now_with,set_launch_at_startup_with,patch_settings, the four hotkeys commands (now onoff_main_core), the tray call;off_mainand the settings wrappers (emit_changed,core_of,sync_launch_at_startup,set_launch_at_startup) gone. New testa_refused_startup_entry_leaves_the_setting_unchanged_and_sends_nothing(theAppEffectsautostart rollback).file_transcribecallswhisper::transcribe_with_output_prefix_with; the wrapper andhost_ofgone;transcribe_file_with,self_test::run/spawn_with, thetranscribe_filecommand and the self-test call lose the app;self_test::spawngone.setup/handle_shortcut,RemoteCommand::run,WarmTranscriber::new, three model_manager_with, anddictation_worker::submit, which lost its last caller in 3c).commands.rs,shell.rs,shell::installand 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
tauridependency (step 5), the_withsuffixes (step 6), the seams of step 4b. No function was left without a caller.Release-note: skip
🤖 Generated with Claude Code