diff --git a/.fork/customizations.yaml b/.fork/customizations.yaml
index 6b7ca8d672a97..35dec494fa28c 100644
--- a/.fork/customizations.yaml
+++ b/.fork/customizations.yaml
@@ -7144,8 +7144,10 @@
(`bot`, mascot:*) there and inherits every other tag, so a bot's subagent
is never a bot. Subagents made before that fix keep the copied tags and
list as bots until archived; there is no migration.
- The collapsed tab strip and mobile are not bot-aware, and mobile lists bots
- as No-project threads.
+ The collapsed tab strip lists bots as a track of mascots beside its project
+ switcher (custom/bots/CollapsedPetalTabs), never as tabs: the bot on screen, or
+ whose work is, is pressed, and picking one opens its conversation. Mobile is
+ not bot-aware and lists bots as No-project threads.
tier: 4
files:
- packages/shared/src/forkBotTags.ts
@@ -7167,6 +7169,7 @@
- apps/web/src/custom/bots/SidebarV2BotCardBody.tsx
- apps/web/src/custom/bots/useIsBotThread.ts
- apps/web/src/custom/bots/SidebarV2BotsSection.tsx
+ - apps/web/src/custom/bots/CollapsedPetalTabs.tsx
- apps/web/src/custom/SidebarV2SectionLabel.tsx
- apps/web/src/custom/SidebarV2StatusIndicator.tsx
- apps/web/src/custom/sidebarV2CardStatus.ts
@@ -7274,8 +7277,9 @@
setting for every bot. Sections that match nothing are dropped, and a list narrowed to
nothing offers to clear.
The search field takes focus only when its button opens it, never when the panel remounts
- with search still open. The collapsed tab strip shows neither bots nor their work, as the
- thread list does not. Mobile is not aware of any of it.
+ with search still open. The collapsed tab strip shows no bot work as tabs, as the thread
+ list does not; its bots are a mascot track beside the project switcher (fork-bots).
+ Mobile is not aware of any of it.
tier: 4
files:
- packages/shared/src/forkBotTags.ts
@@ -7429,3 +7433,20 @@
- apps/web/src/custom/SidebarV2ChromeRows.tsx
verify:
- apps/web/src/__fork_guards__/forkBots.test.ts
+- id: fork-done-celebration
+ intent: >
+ A thread whose mark turns from Working to Done while it is on screen
+ celebrates once, in every theme: two rings in the Done dot's colour pulse
+ off it, and a petal's mascot in the same row gives one small hop. The
+ transition is remembered per thread across remounts (a finished row moves
+ out of the Working group), but only briefly, so a row unmounted while
+ working (a folded section) that comes back Done stays still. Reduced motion skips it.
+ tier: 1
+ files:
+ - apps/web/src/custom/doneCelebration.ts
+ - apps/web/src/custom/SidebarV2StatusIndicator.tsx
+ - apps/web/src/theme.custom.css
+ shadows: []
+ watch: []
+ verify:
+ - apps/web/src/custom/doneCelebration.test.ts
diff --git a/apps/web/src/__fork_guards__/forkCoolDarkerTheme.test.ts b/apps/web/src/__fork_guards__/forkCoolDarkerTheme.test.ts
index ed7f8ee6f5e6d..8491a8382f2b6 100644
--- a/apps/web/src/__fork_guards__/forkCoolDarkerTheme.test.ts
+++ b/apps/web/src/__fork_guards__/forkCoolDarkerTheme.test.ts
@@ -165,7 +165,7 @@ describe("fork guard: fork-cool-darker-theme", () => {
expect(
ruleBodyFor(themeRules, [
...DARKER_PANEL,
- ":is( [data-fork-projects-row], [data-fork-project-section-header], [data-fork-status-section-header], [data-fork-thread-card-meta], [data-fork-thread-card-actions], [data-fork-idle-mark] )",
+ ":is( [data-fork-projects-row], [data-fork-bots-row], [data-fork-project-section-header], [data-fork-status-section-header], [data-fork-thread-card-meta], [data-fork-thread-card-actions], [data-fork-idle-mark] )",
]),
).toMatch(new RegExp(`--contrast-muted-foreground${quietInk.source}`, "u"));
// The draft pencil is drawn at muted/70, so it takes the ink directly.
@@ -179,6 +179,7 @@ describe("fork guard: fork-cool-darker-theme", () => {
// Every hook has to exist for the rule to land on anything.
for (const [file, hook] of [
["../custom/SidebarV2ChromeRows.tsx", "data-fork-projects-row"],
+ ["../custom/bots/SidebarV2BotsSection.tsx", "data-fork-bots-row"],
["../custom/SidebarV2ProjectGroupHeader.tsx", "data-fork-project-section-header"],
["../custom/SidebarV2StatusSectionHeader.tsx", "data-fork-status-section-header"],
["../custom/SidebarV2ThreadCardMeta.tsx", "data-fork-thread-card-meta"],
diff --git a/apps/web/src/__fork_guards__/forkGlass3d.test.ts b/apps/web/src/__fork_guards__/forkGlass3d.test.ts
index 8b0e090a4696e..d023be6df659e 100644
--- a/apps/web/src/__fork_guards__/forkGlass3d.test.ts
+++ b/apps/web/src/__fork_guards__/forkGlass3d.test.ts
@@ -36,9 +36,10 @@ describe("fork guard: fork-glass-3d", () => {
for (const rule of selection) {
const isTokens = compact(rule.selector) === compact(`${NOT_OFF}${PALETTE}`);
// The collapsed sidebar's tab row (fork-collapsed-thread-tabs) is the list laid
- // sideways; the model picker's open provider tab (fork-model-picker) is selected too.
+ // sideways; the model picker's open provider tab (fork-model-picker) and the sidebar's
+ // chosen Code / Chat mode (fork-chat-mode) are selected too.
const isSelectedRow =
- /\[data-thread-item\]|\[data-fork-chrome-row\]|\[data-fork-thread-tabs\]|\[data-fork-model-picker="providers"\] \[data-model-picker-provider\]\[aria-current="true"\]/u.test(
+ /\[data-thread-item\]|\[data-fork-chrome-row\]|\[data-fork-thread-tabs\]|\[data-fork-sidebar-mode-tabs\]|\[data-fork-model-picker="providers"\] \[data-model-picker-provider\]\[aria-current="true"\]/u.test(
rule.selector.replace(/\s+/gu, " "),
);
expect(isTokens || isSelectedRow, `not a selected row: "${rule.selector}"`).toBe(true);
diff --git a/apps/web/src/__fork_guards__/forkGlassStageCard.test.ts b/apps/web/src/__fork_guards__/forkGlassStageCard.test.ts
index 2c91a7ea07061..d38939b477661 100644
--- a/apps/web/src/__fork_guards__/forkGlassStageCard.test.ts
+++ b/apps/web/src/__fork_guards__/forkGlassStageCard.test.ts
@@ -116,16 +116,17 @@ describe("fork guard: fork-glass-stage-card", () => {
expect(Math.abs(composite - stage)).toBeLessThanOrEqual(1);
});
- it("paints an embedded side chat's material once, from the right panel", () => {
- // The card rules would add a second tint and wash over the panel's own.
- const nested = rules.find(
- (rule) =>
- rule.selector.includes(VIBRANCY) &&
- compact(rule.selector).endsWith(`[data-side-chat-pane]${CHAT}::before`),
- );
- expect(flat(nested?.body)).toBe("background: none;");
- const ramp = rules.findIndex((rule) => rule.selector.includes(":has(.fork-timeline-cutoff)"));
- expect(rules.indexOf(nested!)).toBeGreaterThan(ramp);
+ it("paints an embedded side chat's material once, from its own card", () => {
+ // The right panels read at the gutter's alpha, like the sidebar, so they paint no tint
+ // of their own, and the side chat's card keeps the card's fill.
+ expect(
+ rules.filter(
+ (rule) =>
+ rule.selector.includes('[data-preview-panel-mode="inline"]') &&
+ rule.body.includes("background"),
+ ),
+ ).toEqual([]);
+ expect(rules.filter((rule) => rule.selector.includes("[data-side-chat-pane]"))).toEqual([]);
});
it("dithers the stage ramp, or it bands under the desktop glass", () => {
diff --git a/apps/web/src/__fork_guards__/forkPopupSurface.test.ts b/apps/web/src/__fork_guards__/forkPopupSurface.test.ts
index a4c946b2779de..30da73954127a 100644
--- a/apps/web/src/__fork_guards__/forkPopupSurface.test.ts
+++ b/apps/web/src/__fork_guards__/forkPopupSurface.test.ts
@@ -71,6 +71,15 @@ describe("fork guard: fork-popup-surface", () => {
);
});
+ it("leaves the composer's context strip bare", () => {
+ const rule = cssRules(palettes).find(
+ (candidate) =>
+ candidate.selector.replace(/\s+/gu, " ") ===
+ `${GLASS_GATE} [data-fork-composer-context-row] [data-slot="composer-context-strip"].surface-glass`,
+ );
+ expect(rule?.body).toMatch(/background:\s*none/u);
+ });
+
it("keeps the overlays' floor opaque", () => {
// The surface-glass overlays sit over transcript inside #root, where the
// popup cutout cannot clear, so their floor must be an opaque rgb()
diff --git a/apps/web/src/__fork_guards__/sidebarV2CardRows.test.ts b/apps/web/src/__fork_guards__/sidebarV2CardRows.test.ts
index c75335b3d76d9..bcd4710fbf703 100644
--- a/apps/web/src/__fork_guards__/sidebarV2CardRows.test.ts
+++ b/apps/web/src/__fork_guards__/sidebarV2CardRows.test.ts
@@ -401,7 +401,7 @@ describe("fork guard: sidebar-v2-card-rows", () => {
expect(marks).toMatch(
/tone === "failed" \? \(\s*/u,
);
- expect(marks).toContain('');
+ expect(marks).toContain('');
// Idle is the hollow twin of the Done dot, per Noey (2026-09-09).
expect(marks).toContain(
'',
diff --git a/apps/web/src/custom/CollapsedThreadTabs.tsx b/apps/web/src/custom/CollapsedThreadTabs.tsx
index cf3cf77f24019..8972ede3721b2 100644
--- a/apps/web/src/custom/CollapsedThreadTabs.tsx
+++ b/apps/web/src/custom/CollapsedThreadTabs.tsx
@@ -2,7 +2,11 @@
* thread panes, filtered by project, the overflow behind More, New agent last. See
* `.fork/customizations.yaml#fork-collapsed-thread-tabs`. Renders only while collapsed. */
import { useAtomValue } from "@effect/atom-react";
-import { scopeThreadRef, scopedThreadKey } from "@t3tools/client-runtime/environment";
+import {
+ parseScopedThreadKey,
+ scopeThreadRef,
+ scopedThreadKey,
+} from "@t3tools/client-runtime/environment";
import { threadWokeAt } from "@t3tools/client-runtime/state/thread-settled";
import {
resolveThreadCurrentPullRequestLink,
@@ -115,6 +119,7 @@ import {
} from "./sidebarV2StatusGrouping";
import { useStartNewAgentDraft } from "./useNewAgentDraft";
import { forkThreadTabsRef } from "./forkStageStamps";
+import { CollapsedPetalTabs } from "./bots/CollapsedPetalTabs";
const STATUSES_STORAGE_KEY = "t3code:fork:collapsed-thread-tabs-statuses:v1";
const StoredStatuses = Schema.Array(Schema.Literals(COLLAPSED_TAB_STATUSES));
@@ -549,6 +554,16 @@ function CollapsedThreadTabsStrip(props: { readonly paneThreadRefs: readonly Sco
))}
+ {
+ clearSidebarSelection();
+ void router.navigate({
+ to: "/$environmentId/$threadId",
+ params: buildThreadRouteParams(threadRef),
+ });
+ }}
+ />