GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): a workflow thread opens with its phases and agents instead of its script by juliusmarminge · Pull Request #20857 · pingdotgg/t3code

fix(web): a workflow thread opens with its phases and agents instead of its script #20857

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
juliusmarminge merged 13 commits into fix/workflow-member-transcript-stream from fix/workflow-thread-opening
Oct 18, 2026
+1,080 −5
Merged

fix(web): a workflow thread opens with its phases and agents instead of its script #20857

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit Hold shift + click to select a range
d0aa4bf
fix(server): a Claude workflow's script reaches its thread marked as …
juliusmarminge Oct 17, 2026
65e2884
fix(web): a workflow thread opens with its phases and agents instead …
juliusmarminge Oct 17, 2026
4bef96a
fix(mobile): a workflow thread opens with its phases and agents inste…
juliusmarminge Oct 17, 2026
728fd17
Merge branch 'fix/workflow-member-transcript-stream' into fix/workflo…
juliusmarminge Oct 17, 2026
a634206
Merge branch 'fix/workflow-member-transcript-stream' into fix/workflo…
juliusmarminge Oct 17, 2026
bfd0337
fix(client-runtime): a subagent brief that looks like a script stays …
juliusmarminge Oct 17, 2026
0748181
Merge branch 'fix/workflow-member-transcript-stream' into fix/workflo…
juliusmarminge Oct 17, 2026
5631b49
Merge branch 'fix/workflow-member-transcript-stream' into fix/workflo…
juliusmarminge Oct 17, 2026
da8da4c
Merge branch 'fix/workflow-member-transcript-stream' into fix/workflo…
juliusmarminge Oct 17, 2026
670af26
fix(server): a workflow coordinator's script stays in its thread's bo…
juliusmarminge Oct 17, 2026
7abc450
fix(web): Thread Find reaches a workflow opening's name and collapsed…
juliusmarminge Oct 17, 2026
c0c9629
Merge branch 'fix/workflow-member-transcript-stream' into fix/workflo…
juliusmarminge Oct 17, 2026
1d2160a
fix(web,mobile): a workflow's opening reads like the rest of the thread
juliusmarminge Oct 18, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
fix(web): Thread Find reaches a workflow opening's name and collapsed…
… script

The opening block replaced the script bubble, which Find could search, with
text Find did not index, and it unmounted the script while "View script" was
closed. The name and description are now searchable. While find is active the
closed script stays mounted but hidden, and selecting a match in it opens it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge @claude
juliusmarminge and claude committed Oct 17, 2026
commit 7abc45008ffe3fd08960ca3f1b64065ddc8b9af2

Some comments aren't visible on the classic Files Changed page.

There are no files selected for viewing

103 changes: 103 additions & 0 deletions 103 apps/web/src/components/chat/WorkflowOpeningBlock.browser.test.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
import type { WorkflowOpening } from "@t3tools/client-runtime/state/subagentRuntime";
import { EnvironmentId } from "@t3tools/contracts";
import { act } from "react";
import { createRoot, type Root } from "react-dom/client";
import { afterEach, beforeEach, expect, it, vi } from "vite-plus/test";

import { AppAtomRegistryProvider } from "../../rpc/atomRegistry";
import { MarkdownFindContext } from "./markdownFindContext";
import { useThreadFindHighlights } from "./threadFindHighlights";
import { WorkflowOpeningBlock } from "./WorkflowOpeningBlock";

vi.mock(import("../../state/server"), async (original) => {
const actual = await original();
const { Atom } = await import("effect/reactivity");
const providers = Atom.make([]).pipe(Atom.keepAlive);
return { ...actual, providersIgnoringCheckedAtAtom: (() => providers) as never };
});

const opening: WorkflowOpening = {
messageId: "message-script",
script: "export const meta = { name: 'repo-check' }\nagent('Run SCRIPTONLY with Bash')",
name: "repo-check",
description: "Two agents each inspect one file",
driver: null,
providerInstanceId: null,
group: null,
};

function Find(props: { readonly container: HTMLElement | null; readonly query: string }) {
useThreadFindHighlights({
container: props.container,
query: props.query,
activeRowId: "opening",
activeOccurrence: 0,
onActiveRange: () => undefined,
});
return null;
}

let root: Root;
let host: HTMLElement;

beforeEach(() => {
vi.stubGlobal("IS_REACT_ACT_ENVIRONMENT", true);
vi.stubGlobal("CSS", { highlights: new Map() });
vi.stubGlobal(
"Highlight",
class extends Set<Range> {
constructor(...ranges: Range[]) {
super(ranges);
}
},
);
host = document.createElement("div");
document.body.append(host);
root = createRoot(host);
});

afterEach(async () => {
await act(async () => root.unmount());
host.remove();
vi.unstubAllGlobals();
});

async function render(query: string) {
await act(async () =>
root.render(
<AppAtomRegistryProvider>
<MarkdownFindContext value={query.length > 0}>
<div data-timeline-row-id="opening">
<WorkflowOpeningBlock
opening={opening}
environmentId={EnvironmentId.make("environment-local")}
onOpenThread={() => undefined}
/>
</div>
</MarkdownFindContext>
<Find container={host} query={query} />
</AppAtomRegistryProvider>,
),
);
await act(async () => {
await new Promise<void>((resolve) => requestAnimationFrame(() => resolve()));
});
}

const scriptToggle = () => host.querySelector('[aria-label$="workflow script"]');

it("finds the workflow's name and its collapsed script, opening the script on a match", async () => {
await render("repo-check");
expect(CSS.highlights.get("t3-thread-find-active")?.size).toBe(1);
expect(scriptToggle()?.getAttribute("aria-expanded")).toBe("false");

await render("SCRIPTONLY");
expect(CSS.highlights.get("t3-thread-find-active")?.size).toBe(1);
expect(scriptToggle()?.getAttribute("aria-expanded")).toBe("true");
expect(host.querySelector("pre")?.hidden).toBe(false);
});

it("keeps a closed script out of the page until find starts", async () => {
await render("");
expect(host.querySelector("pre")).toBeNull();
});
24 changes: 19 additions & 5 deletions 24 apps/web/src/components/chat/WorkflowOpeningBlock.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import {
} from "@t3tools/client-runtime/state/subagentRuntime";
import type { EnvironmentId } from "@t3tools/contracts";
import { WorkflowIcon } from "lucide-react";
import { useState } from "react";
import { use, useState } from "react";

import { providersIgnoringCheckedAtAtom } from "../../state/server";
import { CollapsibleSectionHeader } from "../ui/collapsible-section-header";
import { findRevealRef, MarkdownFindContext } from "./markdownFindContext";
import { WorkflowPhaseList } from "./ThreadLineageWorkflowRow";

/** Opens a workflow coordinator's thread in place of its script: the plan, then the script on demand. */
Expand All @@ -18,6 +19,10 @@ export function WorkflowOpeningBlock(props: {
readonly onOpenThread: (threadId: string) => void;
}) {
const [scriptOpen, setScriptOpen] = useState(false);
// While finding, the closed script stays mounted (hidden) so a match in it can
// be counted, and opens once that match is selected.
const searching = use(MarkdownFindContext);
const revealRef = findRevealRef(() => setScriptOpen(true));
const { opening } = props;
const providers = useAtomValue(providersIgnoringCheckedAtAtom(props.environmentId));
const headline = workflowOpeningHeadline(opening);
Expand All @@ -32,9 +37,13 @@ export function WorkflowOpeningBlock(props: {
<WorkflowIcon aria-hidden className="mt-0.5 size-3.5 shrink-0 text-muted-foreground" />
<div className="flex min-w-0 flex-1 flex-col gap-0.5">
<p className="text-2xs font-medium text-muted-foreground">Workflow started</p>
<h3 className="truncate text-sm font-medium text-foreground">{headline.title}</h3>
<h3 className="truncate text-sm font-medium text-foreground" data-thread-find-text="true">
{headline.title}
</h3>
{headline.description ? (
<p className="text-xs text-muted-foreground">{headline.description}</p>
<p className="text-xs text-muted-foreground" data-thread-find-text="true">
{headline.description}
</p>
) : null}
</div>
{headline.agents ? (
Expand Down Expand Up @@ -62,8 +71,13 @@ export function WorkflowOpeningBlock(props: {
>
View script
</CollapsibleSectionHeader>
{scriptOpen ? (
<pre className="mt-1 max-h-96 overflow-auto rounded-lg bg-muted/40 p-3 font-mono text-2xs whitespace-pre text-foreground/90">
{scriptOpen || searching ? (
<pre
ref={revealRef}
hidden={!scriptOpen}
className="mt-1 max-h-96 overflow-auto rounded-lg bg-muted/40 p-3 font-mono text-2xs whitespace-pre text-foreground/90"
data-thread-find-text="true"
>
{opening.script}
</pre>
) : null}
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.