Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
Merge f-split-int (c157ea373) into f-split-qa3
Niko1221714ca744dc6e
diff --cc apps/host/server/agent/agent-bridge.mjsindex 9589f785d,0a9ce77d9..647b00b2c--- a/apps/host/server/agent/agent-bridge.mjs+++ b/apps/host/server/agent/agent-bridge.mjs@@@ -295,11 -311,10 +312,12 @@@ export function createAgentBridge({ datsignal?.addEventListener('abort', () => { send = () => {}; attached = false; }, { once: true });// What the assistant itself wrote in this run (not our own step lines): a plan turn reads its plan from it, a step reads its summary.const written = { all: '', step: '' };+ // The turn guard (turn-guard.mjs): counts failing searches, searches, plan rewrites and a nearly full context. Set up once the route is known.+ let guard = null;const raw = frame => { try { send(frame); } catch { send = () => {}; attached = false; } };// What the turn made (files) and compact activity lines (notes-split-agent8.md): derived from the cards the turn already sends.- const tracker = new DeliverableTracker(workspacePath);+ const tracker = new DeliverableTracker(workspacePath, trackerFolders());+ let toolsRan = false; // a turn that ran no tool wrote nothing, so there is nothing to look for at its endtry { tracker.snapshot(); } catch { /* a folder that cannot be read has no deliverables */ }const groups = new ActivityGroups({ emit: raw });const skills = new SkillsUsed({ emit: raw, info: skillInfoFrom(skillsDir()) });@@@ -392,10 -406,10 +411,10 @@@clearInterval(turn.watchdog);turn.follow?.close();for (const child of turn.children.values()) child.follow?.close();- if (turn.stopping && !failure) projector.ended = { kind: 'aborted', reason: { kind: 'user' } };+ if (turn.stopping && !failure) projector.ended = turn.guard ? { kind: 'completed' } : { kind: 'aborted', reason: { kind: 'user' } };reporter.clear();const extra = [];- try { for (const d of tracker.sweep()) { emit(d); groups.addFile(d); } } catch { /* never blocks the end of a turn */ }+ try { if (toolsRan) for (const d of tracker.sweep()) { emit(d); groups.addFile(d); } } catch { /* never blocks the end of a turn */ }groups.end();if (researchTopic && !failure && !turn.stopping) { const sources = parseSources(written.all); if (sources.length) extra.push({ type: 'research', topic: researchTopic, sources }); }try { extra.push(...settlePlan(failure)); } catch { /* a plan frame must never break the end of a turn */ }diff --cc apps/host/src/lib/store.tsindex 64ce3c3df,e18085d19..0326b33c6--- a/apps/host/src/lib/store.ts+++ b/apps/host/src/lib/store.ts@@@ -1,10 -1,10 +1,11 @@@import { plainFailure, plainFailureText } from './plain-errors';import { showcaseMessages, SHOWCASE_AGENTS } from './chat-showcase';import { updateAgent } from './agents';-import { LOOP_MAX_RUNS, LOOP_USAGE, loopEvery, parseLoop, type LoopCommand } from './loop';+import { LOOP_USAGE, parseLoop, type LoopCommand } from './loop';+import { LoopScheduler } from './loop-runner';import { applyStatusFrame, clearStatus } from './live-status';import { applyGoalFrame } from './goal';+ import { tidyAnswer } from './answer-text';import { appendText, mergeDeliverable, readDeliverable, readGroup, readSkills, upsertGroup } from './deliverables';import { applyPlanFrame, applyQueueFrame, planApprove, queueMessage } from './plan';import { forkFields, isForkJob, TIME_SKIP_DURATION, timeSkipPrompt, timeSkipTabId, withTimeSkipResult, type TimeSkipFile, type TimeSkipJob, type TimeSkipRun, type TimeSkipVersion } from './time-skip';@@@ -1652,7 -1666,7 +1653,7 @@@ export async function sendMessage(text} else if (type === 'agent') {patchSession(sessionId, s => ({ ...s, agents: updateAgent(s.agents ?? [], frame.agent) }));} else if (type === 'delta') {- patchAssistant((m) => { const content=m.content+deltaText(frame); if (m.reasoningStartedAt && m.reasoningMs === undefined) m = { ...m, reasoningMs: Date.now() - m.reasoningStartedAt }; const count=Math.max(1,Math.ceil((content.length+(m.reasoning?.length??0))/4)); return {...m,content,...(m.blocks?{blocks:appendText(m.blocks,deltaText(frame))}:{}),tokens:m.usageSource==='estimated'&&m.tps?m.tokens:count,inputTokens:m.inputTokens??Math.ceil((body.length+prior.reduce((n,p)=>n+p.content.length,0))/4),usageSource:'estimated'}; });- patchAssistant((m) => { const content=tidyAnswer(m.content+String(frame.text??'')); if (m.reasoningStartedAt && m.reasoningMs === undefined) m = { ...m, reasoningMs: Date.now() - m.reasoningStartedAt }; const count=Math.max(1,Math.ceil((content.length+(m.reasoning?.length??0))/4)); return {...m,content,...(m.blocks?{blocks:appendText(m.blocks,String(frame.text??''))}:{}),tokens:m.usageSource==='estimated'&&m.tps?m.tokens:count,inputTokens:m.inputTokens??Math.ceil((body.length+prior.reduce((n,p)=>n+p.content.length,0))/4),usageSource:'estimated'}; });++ patchAssistant((m) => { const content=tidyAnswer(m.content+deltaText(frame)); if (m.reasoningStartedAt && m.reasoningMs === undefined) m = { ...m, reasoningMs: Date.now() - m.reasoningStartedAt }; const count=Math.max(1,Math.ceil((content.length+(m.reasoning?.length??0))/4)); return {...m,content,...(m.blocks?{blocks:appendText(m.blocks,deltaText(frame))}:{}),tokens:m.usageSource==='estimated'&&m.tps?m.tokens:count,inputTokens:m.inputTokens??Math.ceil((body.length+prior.reduce((n,p)=>n+p.content.length,0))/4),usageSource:'estimated'}; });} else if (type === 'deliverable') {const file = readDeliverable(frame);if (file) patchAssistant(m => ({ ...m, deliverables: mergeDeliverable(m.deliverables, file) }));