Skip to content

An agentic browser harness: an AI side panel & orb in your own logged-in Chrome, Edge, Arc, Brave or even Firefox run by the agent/subscription you already use (Claude Code, Codex, Antigravity). Free, open source, no API key. Also an MCP server.

fix(extension): stop a tool row sweeping once its turn is over, so a row the agent CLI opened and never closed, or one a cancelled run left in flight, no longer shimmers for good

Shahriar6fa0caddfef4
diff --git a/src/extension/components/run-timeline.tsx b/src/extension/components/run-timeline.tsx
index 79ebeb1..c8ba17c 100644
--- a/src/extension/components/run-timeline.tsx
+++ b/src/extension/components/run-timeline.tsx
@@ -50,12 +50,13 @@ export function RunTimeline({ items, running, onDecide, onSchedule }: RunTimelin
const last = items.at(-1);
const streaming = running && last?.kind === 'assistant';
const awaiting = running && !streaming;
+ const turnStart = items.findLastIndex((item) => item.kind === 'user');
return (
<div className="flex min-w-0 flex-col gap-2.5 p-3">
{items.map((item, index) =>
item.kind === 'tool' ? (
- <ToolRow key={item.id} item={item} onDecide={onDecide} />
+ <ToolRow key={item.id} item={item} live={running && index > turnStart} onDecide={onDecide} />
) : item.kind === 'notice' ? (
<Notice key={item.id} item={item} />
) : item.kind === 'context' ? (
@@ -128,14 +129,17 @@ function Thinking() {
function ToolRow({
item,
+ live,
onDecide,
}: {
item: Extract<RunItem, { kind: 'tool' }>;
+ /** In the turn still running. A row a CLI never closed stops sweeping when its turn ends. */
+ live: boolean;
onDecide: (toolId: string, allow: boolean, remember?: boolean) => void;
}) {
const name = item.action.replace(/^page\./, '');
const Icon = ICONS[name] ?? Wrench;
- const pending = item.ok === undefined && !item.awaiting;
+ const pending = live && item.ok === undefined && !item.awaiting;
const source = item.action === injectCode.name ? sourceOf(item.input) : null;
const [reviewing, setReviewing] = useState(false);