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.

fix(sweep): Gedankenstrich-Pruefung auf 0 gebracht

purple8dfae1ed08a1
diff --git a/src/components/chat/ExplorerPanel.tsx b/src/components/chat/ExplorerPanel.tsx
index 44cc259a..9869200a 100644
--- a/src/components/chat/ExplorerPanel.tsx
+++ b/src/components/chat/ExplorerPanel.tsx
@@ -104,7 +104,7 @@ export function ExplorerPanel({ onApprovePlan }: Props) {
const activeConversationId = useChatStore((s) => s.activeConversationId)
// The working directory is GLOBAL across every Codex conversation (A8), so
// a loop running in ANY of them still must not have the folder yanked out
- // from under it — deliberately not scoped to the active conversation.
+ // from under it, deliberately not scoped to the active conversation.
const loop = useAnyAgentLoopActive()
const lockReason = codexBusyReason({ sendsInFlight, threads, generating, loop })
const lockTitle = lockReason ? CODEX_WORKDIR_LOCK_TITLE[lockReason] : null
diff --git a/src/components/layout/BackgroundShutdownBanner.tsx b/src/components/layout/BackgroundShutdownBanner.tsx
index 199a68ce..1bfca812 100644
--- a/src/components/layout/BackgroundShutdownBanner.tsx
+++ b/src/components/layout/BackgroundShutdownBanner.tsx
@@ -4,7 +4,7 @@ import { HINWEIS_TEXT, HINWEIS_ZEILE } from '../../lib/hinweis'
/**
* B1 Runde 2, Punkt 1 und 4. The one visible line for what
- * `lib/background-shutdown.ts` did without the user watching — see that
+ * `lib/background-shutdown.ts` did without the user watching, see that
* module's doc comment for the two triggers.
*
* Same quiet-row form as StaleModelsBanner: nothing crashed, so no filled
diff --git a/src/components/layout/__tests__/background-shutdown-banner.test.tsx b/src/components/layout/__tests__/background-shutdown-banner.test.tsx
index db301553..91f9ea77 100644
--- a/src/components/layout/__tests__/background-shutdown-banner.test.tsx
+++ b/src/components/layout/__tests__/background-shutdown-banner.test.tsx
@@ -3,7 +3,7 @@
*
* B1 Runde 2, Punkt 1 und 4: the visible half of `lib/background-shutdown.ts`.
* Stopping work without saying so is the same complaint that opened this
- * whole Nachbesserung — a stop the user cannot see is not a stop they can
+ * whole Nachbesserung: a stop the user cannot see is not a stop they can
* act on.
*
* Run: npx vitest run src/components/layout/__tests__/background-shutdown-banner.test.tsx
diff --git a/src/hooks/__tests__/agentLoopStore-zwei-unterhaltungen-teilen-sich-keinen-platz.test.ts b/src/hooks/__tests__/agentLoopStore-zwei-unterhaltungen-teilen-sich-keinen-platz.test.ts
index a8685514..43842404 100644
--- a/src/hooks/__tests__/agentLoopStore-zwei-unterhaltungen-teilen-sich-keinen-platz.test.ts
+++ b/src/hooks/__tests__/agentLoopStore-zwei-unterhaltungen-teilen-sich-keinen-platz.test.ts
@@ -6,7 +6,7 @@
*
* Before this, `useAgentLoopStore` held a single `loop: ActiveLoop | null`
* slot for the WHOLE app, and `stopAgent()` called `.clear()` unconditionally
- * on every press — there was only one slot to clear, so any Stop, anywhere,
+ * on every press, there was only one slot to clear, so any Stop, anywhere,
* wiped whatever loop happened to be standing, including one running in a
* completely different, still-live conversation. This did not need two loops
* running at once to break: pressing Stop in an idle conversation B while A's
@@ -54,7 +54,7 @@ const sse = (payload: object) =>
})
/** A turn that ends the pass (text, no tool call) so the /loop driver gets
- * to schedule the next one — same shape as stopp-beendet-den-agentenlauf. */
+ * to schedule the next one, same shape as stopp-beendet-den-agentenlauf. */
const textZug = () => sse({ choices: [{ delta: { content: 'weiter beim naechsten Mal' } }] })
function seed(): string {
@@ -106,7 +106,7 @@ describe('a loop belongs to its own conversation, not to whichever Stop was last
expect(useAgentLoopStore.getState().loops[convA]?.conversationId).toBe(convA)
// The user switches to a second, completely unrelated conversation and
- // presses Stop there — a conversation with nothing running at all.
+ // presses Stop there, a conversation with nothing running at all.
useChatStore.getState().setActiveConversation(convB)
act(() => { result.current.stopGeneration() })
await act(async () => { await warte(20) })
diff --git a/src/hooks/__tests__/loop-timer-je-unterhaltung.test.ts b/src/hooks/__tests__/loop-timer-je-unterhaltung.test.ts
index 9f2b6782..bd31ef6a 100644
--- a/src/hooks/__tests__/loop-timer-je-unterhaltung.test.ts
+++ b/src/hooks/__tests__/loop-timer-je-unterhaltung.test.ts
@@ -12,10 +12,10 @@
*
* - The two timers cannot coexist as far as the app can see: asking "is a
* pass still pending for A" after B scheduled one always answered with
- * B's handle, never A's — there was only ever one answer for the whole
+ * B's handle, never A's: there was only ever one answer for the whole
* app, not one per conversation.
* - Stop pressed for A, while B's handle is the one currently held, clears
- * B's real browser timer by mistake and leaves A's own timer orphaned —
+ * B's real browser timer by mistake and leaves A's own timer orphaned,
* unreachable, but still counting down on its own, because a JS timer
* fires independently of whether anything still references its id.
*
@@ -24,7 +24,7 @@
* useAgentChat.ts and useCodex.ts), so counting `/chat/completions` calls
* here would prove that rule instead of this one. This file asks the
* question directly instead, through a test-only peek at the timer map's
- * own keys — the same shape of proof `run-lanes.ts`'s and `run-stop.ts`'s
+ * own keys, the same shape of proof `run-lanes.ts`'s and `run-stop.ts`'s
* own tests use for module-private state.
*
* Run: npx vitest run src/hooks/__tests__/loop-timer-je-unterhaltung.test.ts
@@ -111,7 +111,7 @@ describe('a pending loop timer belongs to its own conversation', () => {
const convB = seed()
await act(async () => { await result.current.sendMessage('/loop 1s zaehle weiter') })
- // Both pending at once — a single shared variable could only ever have
+ // Both pending at once, a single shared variable could only ever have
// shown the LATER of the two.
const pending = __pendingAgentLoopTimersForTests()
expect(pending).toContain(convA)
@@ -134,7 +134,7 @@ describe('a pending loop timer belongs to its own conversation', () => {
expect(__pendingAgentLoopTimersForTests()).toContain(convB)
// View is on B right now (seed() switched it there); go back to A and
- // press Stop there. B was the LAST conversation to schedule a timer —
+ // press Stop there. B was the LAST conversation to schedule a timer,
// exactly the shape that clobbered a shared module variable before.
useChatStore.getState().setActiveConversation(convA)
act(() => { result.current.stopGeneration() })
diff --git a/src/hooks/__tests__/stopAgent-nimmt-die-benannte-unterhaltung.test.ts b/src/hooks/__tests__/stopAgent-nimmt-die-benannte-unterhaltung.test.ts
index 54e1cb41..ca9fb851 100644
--- a/src/hooks/__tests__/stopAgent-nimmt-die-benannte-unterhaltung.test.ts
+++ b/src/hooks/__tests__/stopAgent-nimmt-die-benannte-unterhaltung.test.ts
@@ -7,7 +7,7 @@
* Before this commit `stopAgent()` took no argument at all and always
* re-read `useChatStore.getState().activeConversationId` itself. The one
* caller in the app (`useChat.ts`'s `stopGeneration`) always meant the
- * active conversation anyway, so this was never observably wrong today —
+ * active conversation anyway, so this was never observably wrong today,
* but it made "which conversation gets stopped" an assumption baked into
* `stopAgent`, not a fact its caller stated. This test proves the new,
* explicit contract: passing a DIFFERENT conversation id than the active one
@@ -92,7 +92,7 @@ describe('stopAgent(conversationId) stops the named run', () => {
const { result } = renderHook(() => useAgentChat())
const convA = seed()
- // useAgentChat has no slash parser of its own — that lives in
+ // useAgentChat has no slash parser of its own, that lives in
// useChat.ts's sendMessage, which seeds `opts.loop` for pass 1. Passed
// directly here, the same way that call site does.
await act(async () => {
diff --git a/src/hooks/__tests__/useChat-stop-trifft-nur-die-eigene-unterhaltung.test.ts b/src/hooks/__tests__/useChat-stop-trifft-nur-die-eigene-unterhaltung.test.ts
index e12adf06..5fed22a0 100644
--- a/src/hooks/__tests__/useChat-stop-trifft-nur-die-eigene-unterhaltung.test.ts
+++ b/src/hooks/__tests__/useChat-stop-trifft-nur-die-eigene-unterhaltung.test.ts
@@ -7,17 +7,17 @@
* Honest note on this commit's own proof: `abortRef` / `abortConvRef` turned
* out to be already-dead weight by the time this commit ran, not a live bug.
* `stopGeneration` already called `useGenerationStore.getState()
- * .abortConversation(convId)` — the per-conversation register that
- * `registerAborter` feeds on every send — BEFORE the `abortRef` check, and
+ * .abortConversation(convId)`, the per-conversation register that
+ * `registerAborter` feeds on every send, BEFORE the `abortRef` check, and
* that call alone already aborts the right run regardless of which run last
* held the hook-instance ref. Running this exact scenario against the
* pre-commit source (both directions: a foreign Stop leaves the other run
* running, the named Stop actually flips its AbortSignal) came back green
- * already, so there is no "red before" to show for this specific commit —
+ * already, so there is no "red before" to show for this specific commit,
* see bau/lanes.md for the measurement. What this commit removes is the
* redundant, provably-dead ref pair (Hausregel: alten Code sofort loeschen),
* and this file is the permanent behavioural proof that the ONE remaining
- * mechanism — `generationStore.aborters`, keyed by conversation — carries
+ * mechanism, `generationStore.aborters`, keyed by conversation, carries
* the whole guarantee on its own.
*
* Run: npx vitest run src/hooks/__tests__/useChat-stop-trifft-nur-die-eigene-unterhaltung.test.ts
diff --git a/src/hooks/__tests__/useChat-zwei-laeufe-vermischen-nicht.test.ts b/src/hooks/__tests__/useChat-zwei-laeufe-vermischen-nicht.test.ts
index b5042b80..7d0663f4 100644
--- a/src/hooks/__tests__/useChat-zwei-laeufe-vermischen-nicht.test.ts
+++ b/src/hooks/__tests__/useChat-zwei-laeufe-vermischen-nicht.test.ts
@@ -7,9 +7,9 @@
* Before this, useChat() kept `contentRef` / `thinkingRef` / `isThinkingRef`
* / `discardedThinkBufRef` as ONE set of refs per hook instance, and the app
* mounts exactly one `useChat()` instance for the whole window. Two
- * overlapping `sendMessage()` calls — send in conversation A, switch tabs,
+ * overlapping `sendMessage()` calls, send in conversation A, switch tabs,
* send in conversation B while A is still streaming, the ordinary way a
- * human uses two chats — wrote into the SAME buffers: whichever call's
+ * human uses two chats, wrote into the SAME buffers: whichever call's
* `requestAnimationFrame` flush ran last decided what BOTH bubbles ended up
* showing, and a character from B's stream could land mid-word in A's
* answer.
@@ -112,7 +112,7 @@ describe('two runs on two conversations do not mix', () => {
const { result } = renderHook(() => useChat())
await act(async () => {
- // Send in A, switch to B, send in B — the ordinary way a human uses
+ // Send in A, switch to B, send in B, the ordinary way a human uses
// two chats, and exactly the sequence that shared refs could not
// survive: both sends are now in flight from the same hook instance.
useChatStore.getState().setActiveConversation(convA)
@@ -122,8 +122,8 @@ describe('two runs on two conversations do not mix', () => {
await tick()
// Switch the VISIBLE conversation mid-stream, back and forth. Neither
- // run may read "the active conversation" for its own writes — only the
- // convId it captured when it started — so this must change nothing.
+ // run may read "the active conversation" for its own writes, only the
+ // convId it captured when it started, so this must change nothing.
useChatStore.getState().setActiveConversation(convA)
streamA.push('Alpha-1 ')
await tick()
diff --git a/src/hooks/__tests__/useCodex-lauf-gehoert-seiner-unterhaltung.test.ts b/src/hooks/__tests__/useCodex-lauf-gehoert-seiner-unterhaltung.test.ts
index f668552c..362ef839 100644
--- a/src/hooks/__tests__/useCodex-lauf-gehoert-seiner-unterhaltung.test.ts
+++ b/src/hooks/__tests__/useCodex-lauf-gehoert-seiner-unterhaltung.test.ts
@@ -3,7 +3,7 @@
* of the same logic.
*
* `runningRef` in useCodex.ts is a single boolean per HOOK INSTANCE, not per
- * run — and CodexView is not remounted on a conversation switch, so one
+ * run, and CodexView is not remounted on a conversation switch, so one
* `useCodex()` instance really does serve every Code conversation for the
* whole window (same premise as the useChat.ts bug, see
* useChat-zwei-laeufe-vermischen-nicht.test.ts).
@@ -15,17 +15,17 @@
* and `if (!runningRef.current || abort.signal.aborted) break`): if
* conversation A finishes (its `finally` sets `runningRef.current = false`)
* while conversation B is still mid-loop on the SAME hook instance, B's
- * very next iteration check reads `false` and B's loop exits early — not
+ * very next iteration check reads `false` and B's loop exits early, not
* because B was stopped, but because A happened to finish first.
* - The `/loop` pass driver's re-entry gate (`if (runningRef.current) {
* clear the loop; return }`): meant to defer a pass while ITS OWN
* conversation is still busy, it actually fires whenever ANY conversation
- * on this hook instance is running — so a manual send in conversation A
+ * on this hook instance is running, so a manual send in conversation A
* silently cancels conversation B's scheduled loop pass.
*
* Fix: the ReAct loop already carries a per-call `abort` (its own
* AbortController) and every conversation already has a canonical,
- * per-conversation stop flag (`lib/run-stop.ts`'s `isRunStopped`) — both are
+ * per-conversation stop flag (`lib/run-stop.ts`'s `isRunStopped`), both are
* genuinely scoped to the right run. The `/loop` gate is rewritten to ask
* the STORE whether THIS conversation is generating, not the shared ref.
* `runningRef` itself is retired; nothing correctness-critical should still
@@ -35,7 +35,7 @@
* loop-detection.test.ts / useCodex-streaming.test.ts in this same
* directory): a genuine behavioral repro needs two full ReAct runs
* interleaved through real tool-call rounds, which the existing behavioral
- * useCodex tests do not attempt either — the wiring pin is what this file's
+ * useCodex tests do not attempt either, the wiring pin is what this file's
* neighbours already rely on for logic this deep in the hook.
*
* Run: npx vitest run src/hooks/__tests__/useCodex-lauf-gehoert-seiner-unterhaltung.test.ts
diff --git a/src/hooks/useAgentChat.ts b/src/hooks/useAgentChat.ts
index 0ea70c5c..2fcea6bd 100644
--- a/src/hooks/useAgentChat.ts
+++ b/src/hooks/useAgentChat.ts
@@ -114,11 +114,11 @@ import { buildChatSystemPrompt } from '../lib/system-prompt'
* The pending next /loop pass, PER CONVERSATION. MODULE scope, not a hook
* ref (audit A3): the chat view unmounts on a view switch, and a timer
* parked in an unmounted instance's ref was unreachable for the remounted
- * hook — stopAgent cleared its own (empty) ref while the old timer kept
+ * hook, stopAgent cleared its own (empty) ref while the old timer kept
* firing new passes.
*
* B2: was a single module VARIABLE, not a map, until this commit. Two
- * conversations each waiting out a /loop interval shared the one handle —
+ * conversations each waiting out a /loop interval shared the one handle,
* the second conversation's `setTimeout` result overwrote the first's, and
* `clearTimeout` on that overwritten handle canceled the WRONG conversation's
* pending pass, while the one it meant to cancel kept its real timer running
@@ -2624,7 +2624,7 @@ export function useAgentChat() {
//
// B2 Commit 5: the caller NAMES the run it means to stop instead of this
// function re-reading "whichever conversation happens to be visible
- // right now" — the visible one is only ever correct because today's one
+ // right now", the visible one is only ever correct because today's one
// caller (useChat.ts's stopGeneration) already resolved it that way. A
// future caller that stops a run the user is NOT looking at (a per-item
// Stop in a task list, say) would otherwise silently stop the wrong one.
diff --git a/src/hooks/useChat.ts b/src/hooks/useChat.ts
index 992d5a26..0d6873f9 100644
--- a/src/hooks/useChat.ts
+++ b/src/hooks/useChat.ts
@@ -282,9 +282,9 @@ async function runGroupTurn(convId: string, model: string, allModels: string[],
*
* B2: `contentRef` / `thinkingRef` / `isThinkingRef` / `discardedThinkBufRef`
* used to be ONE set of `useRef`s per `useChat()` instance, and the app
- * mounts exactly one instance. Two overlapping `sendMessage()` calls — send
+ * mounts exactly one instance. Two overlapping `sendMessage()` calls, send
* in conversation A, switch tabs, send in conversation B before A's stream
- * ends — wrote into the SAME refs, and a chunk from either run could land in
+ * ends, wrote into the SAME refs, and a chunk from either run could land in
* either bubble depending on which call's flush ran last (see
* useChat-zwei-laeufe-vermischen-nicht.test.ts). A plain local variable
* captured by closure is exactly as fast and cannot be shared between two
@@ -350,7 +350,7 @@ export function useChat() {
})
const abort = new AbortController()
- // The generationStore aborter map IS the run register, keyed by convId —
+ // The generationStore aborter map IS the run register, keyed by convId,
// see the ChatRun doc comment above sendMessage. Nothing else needs to
// remember this controller: Stop looks it up there, by conversation, not
// through a hook-instance ref that a second overlapping run would
@@ -801,7 +801,7 @@ export function useChat() {
useGenerationStore.getState().setGenerating(convId, true)
setIsLoadingModel(true)
useModelStore.getState().setIsModelLoading(true)
- // Owns this turn's streamed text end to end — see the ChatRun doc comment
+ // Owns this turn's streamed text end to end, see the ChatRun doc comment
// above. `convId` is fixed at this point: the `if (!convId)` branch above
// already resolved it to a real string.
const run: ChatRun = { convId, content: "", thinking: "", isThinking: false, discardedThinkBuf: "" }
diff --git a/src/hooks/useCodex.ts b/src/hooks/useCodex.ts
index 9117f810..7f29dd0d 100644
--- a/src/hooks/useCodex.ts
+++ b/src/hooks/useCodex.ts
@@ -250,11 +250,11 @@ function codexEffort(model: string): { levels?: string[]; fallback?: string } {
* The pending next /loop pass, PER CONVERSATION. MODULE scope, not a hook
* ref (audit A3): the Code view unmounts on every tab switch, and a timer
* parked in an unmounted instance's ref was unreachable for the remounted
- * hook — stopCodex cleared its own (empty) ref while the old timer kept
+ * hook, stopCodex cleared its own (empty) ref while the old timer kept
* firing new passes.
*
* B2: was a single module variable until this commit, so two Code
- * conversations each waiting out a /loop interval shared one handle — the
+ * conversations each waiting out a /loop interval shared one handle, the
* second overwrote the first, and stopping either one cleared the wrong
* conversation's timer while the intended one kept running. Keyed by
* conversation now, same shape as `agentLoopStore` and the Chat-side
@@ -2506,11 +2506,11 @@ export function useCodex() {
codexLoopTimers.delete(convForLoop)
// Bail if THIS conversation is already generating something else
// meanwhile (a manual send raced the timer). Clear the loop store
- // too — leaving it standing painted a LoopBar that promised a pass
+ // too, leaving it standing painted a LoopBar that promised a pass
// which was never coming (audit A3).
//
// B2 Commit 6: was a single running flag shared by the whole HOOK
- // INSTANCE rather than scoped per run — CodexView is not
+ // INSTANCE rather than scoped per run, CodexView is not
// remounted on a conversation switch, so ANY conversation running
// on this instance used to cancel every OTHER conversation's
// pending pass, not just its own. Reading the store here asks
diff --git a/src/lib/__tests__/background-shutdown.test.ts b/src/lib/__tests__/background-shutdown.test.ts
index 75e12494..55ee9463 100644
--- a/src/lib/__tests__/background-shutdown.test.ts
+++ b/src/lib/__tests__/background-shutdown.test.ts
@@ -59,7 +59,7 @@ function laufendeAufgabe(id: string, convId: string): AbortController {
return controller
}
-/** A normal agent/chat stream mid-flight, with NO delegate_task sub-agent —
+/** A normal agent/chat stream mid-flight, with NO delegate_task sub-agent,
* the shape Runde 2 found byConv could not see at all. */
function laufenderStrom(convId: string): { aborted: () => boolean } {
let aborted = false
@@ -68,7 +68,7 @@ function laufenderStrom(convId: string): { aborted: () => boolean } {
return { aborted: () => aborted }
}
-/** A /loop pass parked between two runs — nothing is "generating", so only
+/** A /loop pass parked between two runs, nothing is "generating", so only
* the loop store knows this conversation still has work pending. */
function wartenderLoopPass(convId: string): void {
useAgentLoopStore.getState().start({
@@ -179,7 +179,7 @@ describe('installBackgroundShutdown: App beenden (pagehide + beforeunload)', ()
})
})
-describe('installBackgroundShutdown: Netzabbruch (Runde 2, Blocker 1 — offline stoppt nichts mehr)', () => {
+describe('installBackgroundShutdown: Netzabbruch (Runde 2, Blocker 1: offline stoppt nichts mehr)', () => {
it('a dropped connection leaves running work running: retry.ts is built for exactly this', () => {
installBackgroundShutdown()
const c = laufendeAufgabe('task-z', 'conv-1')
@@ -223,7 +223,7 @@ describe('installBackgroundShutdown: Fenster schliessen (app:hidden IST onCloseR
* main.rs sendet `app:hidden` an GENAU EINER Stelle: im `CloseRequested`-
* Arm, direkt bevor es das Fenster in den Tray versteckt. Ein Horcher auf
* dieses Ereignis ist also derselbe X-Klick, nicht ein zweiter, getrennter
- * Moment — mit derselben Karenzzeit, die main.rs fuer den lokalen-Modelle-
+ * Moment, mit derselben Karenzzeit, die main.rs fuer den lokalen-Modelle-
* Offload nach demselben Klick schon anwendet.
*/
it('reacts to app:hidden and, after the grace period, stops every running background task', async () => {
@@ -237,7 +237,7 @@ describe('installBackgroundShutdown: Fenster schliessen (app:hidden IST onCloseR
windowVisible = false
for (const cb of listeners['app:hidden']) cb(undefined)
- // Not yet — the mis-click grace period has not elapsed.
+ // Not yet, the mis-click grace period has not elapsed.
await vi.advanceTimersByTimeAsync(1000)
expect(c.signal.aborted).toBe(false)
diff --git a/src/lib/__tests__/readonly-enforcement.test.ts b/src/lib/__tests__/readonly-enforcement.test.ts
index f3dfc8cc..fc95951f 100644
--- a/src/lib/__tests__/readonly-enforcement.test.ts
+++ b/src/lib/__tests__/readonly-enforcement.test.ts
@@ -156,7 +156,7 @@ describe('/loop actually loops', () => {
const src = read('../../hooks/useCodex.ts')
// The handle is module-scoped since audit A3 — a hook ref died with the
// unmounted Code view, so stopCodex could not reach a pending pass. Per
- // conversation since B2 Commit 4 — a single shared handle let one
+ // conversation since B2 Commit 4, a single shared handle let one
// conversation's Stop cancel a DIFFERENT conversation's pending pass.
expect(src).toContain('const codexLoopTimers = new Map<string, ReturnType<typeof setTimeout>>()')
expect(src).toContain('codexLoopTimers.set(convForLoop, setTimeout(fireLoopPass, loopState.intervalMs))')
@@ -187,7 +187,7 @@ describe('/loop actually loops', () => {
// Unlimited is only defensible if the user can see it and stop it.
for (const f of ['../../hooks/useCodex.ts', '../../hooks/useAgentChat.ts']) {
expect(read(f)).toContain('useAgentLoopStore.getState().start(')
- // B2: clear() takes the conversation id now — a bare `clear()` with no
+ // B2: clear() takes the conversation id now, a bare `clear()` with no
// argument doesn't compile any more (the store is per conversation),
// so this also pins that Stop names WHICH conversation's loop it ends.
expect(read(f)).toMatch(/useAgentLoopStore\.getState\(\)\.clear\([^)]+\)/)
@@ -205,7 +205,7 @@ describe('/loop actually loops', () => {
const src = read('../../hooks/useCodex.ts')
const stopBody = extractUseCallbackBody(src, 'const stopCodex = useCallback(')
// B2 Commit 4: the timer is per conversation, looked up by the id being
- // stopped, not a bare module variable — this proves Stop cancels the
+ // stopped, not a bare module variable, this proves Stop cancels the
// handle that belongs to THIS conversation.
expect(stopBody).toContain('codexLoopTimers.get(stoppedConvId')
expect(stopBody).toMatch(/clearTimeout\(pendingLoopTimer\)/)
diff --git a/src/stores/agentLoopStore.ts b/src/stores/agentLoopStore.ts
index e4de4118..9ce144cc 100644
--- a/src/stores/agentLoopStore.ts
+++ b/src/stores/agentLoopStore.ts
@@ -10,7 +10,7 @@
*
* This used to hold a single `loop: ActiveLoop | null`. `stopAgent` /
* `stopCodex` called `clear()` unconditionally, on EVERY Stop press,
- * regardless of which conversation the press was for — because there was
+ * regardless of which conversation the press was for, because there was
* only ever one slot to clear. A `/loop` in conversation A died the moment
* the user pressed Stop in conversation B: not a rare race, a guaranteed
* outcome of two conversations ever running a loop "at the same time" (one
@@ -40,7 +40,7 @@ interface AgentLoopState {
loops: Record<string, ActiveLoop>
start: (loop: ActiveLoop) => void
/** Clears ONLY this conversation's loop. A bare `clear()` with no id would
- * reintroduce the single-slot bug this store exists to end — there is no
+ * reintroduce the single-slot bug this store exists to end, there is no
* overload for it. */
clear: (conversationId: string) => void
}
@@ -59,7 +59,7 @@ export const useAgentLoopStore = create<AgentLoopState>((set) => ({
}))
/** The loop of ONE conversation, or `undefined`. For LoopBar, which shows
- * only the ACTIVE conversation's own loop — a loop running elsewhere must
+ * only the ACTIVE conversation's own loop, a loop running elsewhere must
* not paint this bar or steal its Stop button. */
export function useConversationLoop(conversationId: string | null | undefined): ActiveLoop | undefined {
return useAgentLoopStore((s) => (conversationId ? s.loops[conversationId] : undefined))
@@ -70,7 +70,7 @@ export function useConversationLoop(conversationId: string | null | undefined):
*
* For the Coding Agent's working-directory lock (codexBusyReason): the
* folder is a single GLOBAL value shared by every Codex conversation (A8,
- * 2.6.8 — "moving it mid-run would send the next turn somewhere the user is
+ * 2.6.8: "moving it mid-run would send the next turn somewhere the user is
* not looking"), so a loop in a DIFFERENT conversation still writes through
* that same folder and still must not have it yanked out from under it. This
* is deliberately NOT scoped to the active conversation, unlike LoopBar.
diff --git a/src/stores/backgroundShutdownStore.ts b/src/stores/backgroundShutdownStore.ts
index 21b10894..8d661879 100644
--- a/src/stores/backgroundShutdownStore.ts
+++ b/src/stores/backgroundShutdownStore.ts
@@ -9,7 +9,7 @@ import { create } from 'zustand'
*
* Two DIFFERENT things this module needs to say, never conflated into one:
*
- * `'offline'` the network dropped. Nothing was stopped — retry.ts already
+ * `'offline'` the network dropped. Nothing was stopped, retry.ts already
* retries a dropped connection on purpose, so a two-second
* WLAN wobble must not read as "your work is gone". This
* notice says the connection is down and running work is
@@ -18,7 +18,7 @@ import { create } from 'zustand'
*
* `'hidden-stopped'` the window was closed (to the tray) and, after the
* grace period a reopen would have cancelled, background
- * agent work was actually stopped — the same trade the local
+ * agent work was actually stopped, the same trade the local
* model offload in main.rs already makes for the same click.
* This one does NOT self-clear: the user has to see it once,
* because credits stopped accruing and a new message is what