Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(aui): remove dead code from useRunMode

Steven Enamakel632ccc5e3bc7
diff --git a/app/src/features/conversations/aui/useRunMode.ts b/app/src/features/conversations/aui/useRunMode.ts
index 6026057934..d18bd8d4dc 100644
--- a/app/src/features/conversations/aui/useRunMode.ts
+++ b/app/src/features/conversations/aui/useRunMode.ts
@@ -38,11 +38,6 @@ export function useRunMode(threadId: string | null): UseRunModeResult {
useEffect(() => {
if (!threadId || loadedFor.current === threadId) return;
loadedFor.current = threadId;
- // Only fetch when the slice has no live entry yet — a value already set
- // (e.g. by a `run_mode_changed` event that arrived first) wins.
- if (threadId in useAppSelector.__unused__ === undefined) {
- /* no-op: placeholder removed below */
- }
let cancelled = false;
void (async () => {
try {