Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

merge: feat/310-waechter (39f892ba3) into integ/310

purple24bcf4d2eb8f
diff --cc src/api/mcp/__tests__/tool-catalog-tokens.test.ts
index 8511de51,ee9c9474..0821ace5
--- a/src/api/mcp/__tests__/tool-catalog-tokens.test.ts
+++ b/src/api/mcp/__tests__/tool-catalog-tokens.test.ts
@@@ -148,12 -148,13 +148,19 @@@ const CODING_TOKEN_CEILING = 173
// integ/310: C60, C60-S5, C59 und P-L (web_research) zusammen, gemessen
// 25.032 Zeichen. Token-Decke geschaetzt im selben Verhaeltnis wie oben
// (5040 / 23200).
+// T1 (CA rebuild): +88 Zeichen fuer den einen Satz in shell_execute, dass ein
+// Befehl ueber die Zeitgrenze hinaus als Hintergrundaufgabe weiterlaeuft.
+// Gemessen 25.120, Deckel plus Rand. Der codierende Zug bleibt unter seiner
+// Decke.
- const FULL_CHAR_CEILING = 25150
- const FULL_TOKEN_CEILING = 5450
+ // Waechter: +3.293 Zeichen fuer watcher_create/_list/_update/_delete im
+ // VOLLEN Katalog (25.032 -> 28.325, Beschreibungen schon auf Stichworte
+ // gekuerzt). Der codierende Zug bleibt gleich: die vier stehen hinter ihrem
+ // Tor (WATCHER_GATE_WORDS) und fahren nur auf einer Nachricht ueber eine
+ // spaetere Zeit oder eine Wiederholung mit. Token-Decke im selben Verhaeltnis.
-const FULL_CHAR_CEILING = 28380
-const FULL_TOKEN_CEILING = 6170
++// Beide zusammen (CA-Satz und Waechter): gemessen 28.441 Zeichen, Deckel plus
++// Rand. Token-Decke im selben Verhaeltnis wie beim Waechter (6170 / 28380).
++const FULL_CHAR_CEILING = 28470
++const FULL_TOKEN_CEILING = 6190
describe('the coding step carries a catalog the diet actually shrank', () => {
it('the gate really is what a plain coding turn gets', () => {
diff --cc src/components/chat/ChatView.tsx
index a4438759,f6a4b2dd..71f22d35
--- a/src/components/chat/ChatView.tsx
+++ b/src/components/chat/ChatView.tsx
@@@ -30,7 -29,9 +30,8 @@@ import { PluginsDropdown } from './Plug
import { ModelSelector } from '../models/ModelSelector'
import { useConversationModelHint } from './ConversationModelNote'
import { GoalBar } from './GoalBar'
-import { PlanBar } from './PlanBar'
import { LoopBar } from './LoopBar'
+ import { WatcherStrip } from './WatcherStrip'
import { GroupCostHint } from './GroupCostHint'
import { GroupRoundBar } from './GroupRoundBar'
import { MemoryDebugToggle } from './MemoryDebugPanel'
diff --cc src/lib/self-control-policy.ts
index 8531744f,a5f37668..01622b5b
--- a/src/lib/self-control-policy.ts
+++ b/src/lib/self-control-policy.ts
@@@ -22,7 -22,7 +22,8 @@@
import { useChatStore } from '../stores/chatStore'
import { previousRunOf, type AgentRunContext } from '../api/agent-context'
import { taintLabel } from './run-taint'
+import { isPhoneTurn, PHONE_TURN_NO_CARD } from './remote-turn-caps'
+ import { isWatcherConversation } from '../stores/watcherStore'
import type { Message } from '../types/chat'
export const MAX_CARDS_PER_RUN = 3
@@@ -83,8 -83,11 +84,13 @@@ export function checkSelfControl(run: A
if (!run?.settingsCard) {
return { ok: false, why: 'surface', reply: 'Error: LU can only be changed in a chat where the user sees the confirmation card. Nothing changed.' }
}
+ // A turn the paired phone started: the card would wait at the computer.
+ if (isPhoneTurn(run.conversationId)) return { ok: false, why: 'surface', reply: PHONE_TURN_NO_CARD }
+ // A watcher's run has nobody in front of the card, and a watcher that made
+ // watchers would be a schedule that grows by itself.
+ if (isWatcherConversation(run.conversationId)) {
+ return { ok: false, why: 'surface', reply: 'Refused: this is a watcher\'s run. It cannot change LU or make, change or delete watchers. Nothing changed.' }
+ }
const taintedBy = taintLabel(run)
if (ask.strong && taintedBy) {
return {
diff --cc src/mobile/boot/__tests__/settings-durable.test.ts
index eae69fd9,02efdc72..eae71f71
--- a/src/mobile/boot/__tests__/settings-durable.test.ts
+++ b/src/mobile/boot/__tests__/settings-durable.test.ts
@@@ -112,8 -112,8 +112,9 @@@ describe('which keys are kept', () =>
'locally-uncensored-computer': 'desktop only: the settings of computer use, which the phone does not have',
'lu-neuron-tweaker': 'desktop only (3.0.9, P11): the Neuron tweaker steers LU Engine, which the phone does not have',
'lu-neuron-window': 'desktop only (3.1.0): where the Neurons window stood, a window the phone does not have',
+ 'lu-watcher-settings': 'desktop only: the notification switches of the watchers, which the phone does not run',
'lu-settings-audit': 'desktop only (3.1.0, C60): what the agent changed in the desktop app; the phone has no self-control tools',
+ 'locally-uncensored-command-rules': 'desktop only (3.1.0, CA K4): commands the user allowed per folder of this computer',
'lu-chat-look': 'desktop only (3.1.0, C58): the chat look of the desktop transcript; the phone has its own chat screen',
'LU-create-orders': 'the orders of Create in chat, which is locked on the phone until it has the order card',
'lu-mobile-switched-under-answer': 'a note per answer; lost, the chat says "interrupted" instead of "you switched models"',