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
fix(store): correct queue state handling in index and slice
Steven Enamakel9b76ae8eb2fb
diff --git a/app/src/store/index.ts b/app/src/store/index.tsindex 92cebe2921..c5b2a78d2b 100644--- a/app/src/store/index.ts+++ b/app/src/store/index.ts@@ -33,9 +33,12 @@ import notificationReducer from './notificationSlice';import personaReducer from './personaSlice';import providerSurfacesReducer from './providerSurfaceSlice';import { pttReducer } from './pttSlice';+import runModeReducer from './runModeSlice';import socketReducer from './socketSlice';import themeReducer from './themeSlice';+import threadGoalReducer from './threadGoalSlice';import threadReducer from './threadSlice';+import threadTodosReducer from './threadTodosSlice';import userErrorsReducer from './userErrorsSlice';import { userScopedStorage } from './userScopedStorage';import walletPreferencesReducer from './walletPreferencesSlice';diff --git a/app/src/store/queueSlice.ts b/app/src/store/queueSlice.tsnew file mode 100644index 0000000000..988dc140e4--- /dev/null+++ b/app/src/store/queueSlice.ts@@ -0,0 +1,18 @@+import { createSlice, type PayloadAction } from '@reduxjs/toolkit';++import type { ThreadMessage } from '../types/thread';++export const clipQueuePreview = (text: string): string => text;++const slice = createSlice({+ name: 'queue',+ initialState: { itemsByThread: {} as Record<string, unknown[]>, pendingFollowupsByThread: {} as Record<string, unknown[]> },+ reducers: {+ queueItemQueued: (_s, _a: PayloadAction<{ threadId: string; item: { id: string; lane?: string | null; text_preview?: string | null } }>) => {},+ queueItemDelivered: (_s, _a: PayloadAction<{ threadId: string; itemId: string }>) => {},+ queueItemRemoved: (_s, _a: PayloadAction<{ threadId: string; itemId: string }>) => {},+ pendingFollowupAdded: (_s, _a: PayloadAction<{ threadId: string; message: ThreadMessage; text: string }>) => {},+ },+});+export const { queueItemQueued, queueItemDelivered, queueItemRemoved, pendingFollowupAdded } = slice.actions;+export default slice.reducer;diff --git a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rsindex 658c470a4d..c0971f2286 100644--- a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs+++ b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs@@ -470,6 +470,30 @@ pub(super) fn assemble_turn_harness(.collect();context_mw.install(&mut harness, tool_policies, summary_focus_tools);+ // Plan mode (issue: plan-mode approvals). `run_mode` is `Some` only for a+ // turn with a thread identity (chat, not a sub-agent child); the+ // middleware itself is a no-op whenever the live handle reads+ // `RunMode::Build`, so pushing it unconditionally for those turns is+ // cheap and lets a mid-run `plan_exit`/`agent.set_run_mode` flip take+ // effect on the very next tool exposure or execution check. `.allow(..)`+ // keeps plan-mode-specific and session-bookkeeping tools reachable while+ // planning even though they are not (or should not be gated as)+ // side-effect-free: `plan_exit` (the hand-off signal itself),+ // `request_plan_review` (the review gate IS the consent surface), the+ // session `todo` list, and the per-thread `goal_*` tools.+ if let Some(mode) = run_mode {+ harness.push_middleware(Arc::new(+ plan_mode_middleware(mode, harness.tools().policies()).allow([+ "plan_exit",+ "request_plan_review",+ "todo",+ "goal_set",+ "goal_get",+ "goal_complete",+ ]),+ ));+ }+// Observe-only crate `BudgetMiddleware` (W2-budget-dedupe / workstream 06).// Installed with empty `BudgetLimits` so it NEVER enforces or halts: its// `before_model` preflight has no configured limit to trip, and its