The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(conversations): add slash commands for run mode and stop
Steven Enamakeld8cbb81e5080
diff --git a/app/src/features/conversations/composerSendDecision.ts b/app/src/features/conversations/composerSendDecision.tsindex 8c3a50675e..5ff056249c 100644--- a/app/src/features/conversations/composerSendDecision.ts+++ b/app/src/features/conversations/composerSendDecision.ts@@ -5,7 +5,13 @@ type ComposerSendBlockReason =| 'usage_limit_reached'| 'socket_disconnected';-type SlashCommandDecision = { kind: 'new_or_clear' } | { kind: 'not_handled' };+import type { RunMode } from '../../store/runModeSlice';++export type SlashCommandDecision =+ | { kind: 'new_or_clear' }+ | { kind: 'run_mode'; mode: RunMode }+ | { kind: 'stop' }+ | { kind: 'not_handled' };interface ComposerSendDecisionArgs {rawText: string;@@ -38,6 +44,12 @@ export const handleComposerSlashCommand = (command: string): SlashCommandDecisioif (cmd === '/new' || cmd === '/clear') {return { kind: 'new_or_clear' };}+ if (cmd === '/plan' || cmd === '/build') {+ return { kind: 'run_mode', mode: cmd === '/plan' ? 'plan' : 'build' };+ }+ if (cmd === '/stop') {+ return { kind: 'stop' };+ }return { kind: 'not_handled' };};diff --git a/crates/openhuman-core/src/memory/conversations/blocking.rs b/crates/openhuman-core/src/memory/conversations/blocking.rsindex df7b264fe2..fbd561add2 100644--- a/crates/openhuman-core/src/memory/conversations/blocking.rs+++ b/crates/openhuman-core/src/memory/conversations/blocking.rs@@ -136,6 +136,18 @@ pub async fn update_message(.await}+/// [`store::delete_messages_from`] on the blocking pool.+pub async fn delete_messages_from(+ workspace_dir: PathBuf,+ thread_id: String,+ message_id: String,+) -> Result<Option<usize>, String> {+ run("delete_messages_from", move || {+ store::delete_messages_from(workspace_dir, &thread_id, &message_id)+ })+ .await+}+/// [`store::update_thread_title`] on the blocking pool.pub async fn update_thread_title(workspace_dir: PathBuf,