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,mobile): disabled provider instances no longer badge their siblings by tris203 · Pull Request #14545 · pingdotgg/t3code

fix(web,mobile): disabled provider instances no longer badge their siblings #14545

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 9 commits into pingdotgg:main from tris203:t3code/disabled-instance-badge
Oct 19, 2026

Uh oh!

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

Merged

fix(web,mobile): disabled provider instances no longer badge their siblings #14545

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit Hold shift + click to select a range
91cfa45
fix(web,mobile): disabled provider instances no longer badge their si…
tris203 Sep 30, 2026
8e49d0f
fix(server): report a disabled managed Codex account as disabled
tris203 Oct 1, 2026
08d70a2
test(web): subagent tooltip fixture marks its provider instances enabled
tris203 Oct 7, 2026
b5efcb9
test(web): enable workflow provider fixtures for instance badges
tris203 Oct 15, 2026
6bdbd2d
fix(web): sidebar thread rows know which provider instances are disabled
tris203 Oct 17, 2026
91c1dd6
fix(web): sidebar badges count an instance a project turns on
tris203 Oct 17, 2026
8bab44b
Merge remote-tracking branch 'origin/main' into t3code/disabled-insta…
juliusmarminge Oct 19, 2026
da53161
fix(clients): preserve provider snapshot enablement for badges
juliusmarminge Oct 19, 2026
05b815c
fix(clients): retain badges for disabled historical accounts
juliusmarminge Oct 19, 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
Next Next commit
fix(web,mobile): disabled provider instances no longer badge their si…
…blings

A disabled second Codex instance made the default Codex icon show a CO
badge, because the shared-driver check counted instances that can't be
picked. Only enabled instances now make a driver ambiguous; a disabled
instance's own row still keeps its badge.
  • Loading branch information

Uh oh!

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

@tris203
tris203 committed Oct 17, 2026
commit 91cfa4599688a828c4d78afc19ba5fe45f9b8205

There are no files selected for viewing

4 changes: 3 additions & 1 deletion 4 apps/mobile/src/features/threads/thread-provider-instance.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ function makeConfig(
readonly accentColor?: string;
}>,
): ServerConfig {
return { providers } as unknown as ServerConfig;
return {
providers: providers.map((provider) => ({ enabled: true, ...provider })),
} as unknown as ServerConfig;
}

function makeThread(environmentId: EnvironmentId, instanceId: string): EnvironmentThreadShell {
Expand Down
4 changes: 2 additions & 2 deletions 4 apps/mobile/src/features/threads/thread-provider-instance.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export function resolveThreadProviderInstance(
return {
...entry,
showBadge: shouldShowInstanceBadge(
entry,
providers.map((provider) => ({ driverKind: provider.driver })),
{ ...entry, enabled: snapshot.enabled },
providers.map((provider) => ({ driverKind: provider.driver, enabled: provider.enabled })),
),
};
}
Expand Down
1 change: 1 addition & 0 deletions 1 apps/mobile/src/state/thread-list-environments.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ describe("thread list environment projection", () => {
it.each([
["instanceId", ProviderInstanceId.make("other")],
["driver", ProviderDriverKind.make("claudeAgent")],
["enabled", false],
["displayName", "Work account"],
["accentColor", "#123456"],
["iconUrl", "https://example.test/icon.png"],
Expand Down
6 changes: 4 additions & 2 deletions 6 apps/mobile/src/state/thread-list-environments.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Atom } from "effect/reactivity";

export type ThreadListProvider = Pick<
ServerProvider,
"instanceId" | "driver" | "displayName" | "accentColor" | "iconUrl"
"instanceId" | "driver" | "enabled" | "displayName" | "accentColor" | "iconUrl"
>;

const capabilityKeys = [
Expand All @@ -25,9 +25,10 @@ const capabilityKeys = [
function selectEnvironment(config: ServerConfig) {
return {
providers: config.providers.map(
({ instanceId, driver, displayName, accentColor, iconUrl }) => ({
({ instanceId, driver, enabled, displayName, accentColor, iconUrl }) => ({
instanceId,
driver,
enabled,
displayName,
accentColor,
iconUrl,
Expand All @@ -51,6 +52,7 @@ function sameProviders(
return (
provider.instanceId === other.instanceId &&
provider.driver === other.driver &&
provider.enabled === other.enabled &&
provider.displayName === other.displayName &&
provider.accentColor === other.accentColor &&
provider.iconUrl === other.iconUrl
Expand Down
31 changes: 22 additions & 9 deletions 31 packages/client-runtime/src/state/providerInstanceDisplay.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ describe("normalizeProviderAccentColor", () => {

describe("shouldShowInstanceBadge", () => {
it("hides badges for distinct ACP agents sharing the registry driver", () => {
const mistral = { driverKind: acpRegistry, acpRegistryAgentId: "mistral-vibe" };
const devin = { driverKind: acpRegistry, acpRegistryAgentId: "devin" };
const mistral = { driverKind: acpRegistry, acpRegistryAgentId: "mistral-vibe", enabled: true };
const devin = { driverKind: acpRegistry, acpRegistryAgentId: "devin", enabled: true };
expect(shouldShowInstanceBadge(mistral, [mistral, devin])).toBe(false);
expect(shouldShowInstanceBadge(devin, [mistral, devin])).toBe(false);
});

it("shows badges for multiple instances of the same ACP agent", () => {
const first = { driverKind: acpRegistry, acpRegistryAgentId: "mistral-vibe" };
const first = { driverKind: acpRegistry, acpRegistryAgentId: "mistral-vibe", enabled: true };
const second = { ...first };
expect(shouldShowInstanceBadge(first, [first, second])).toBe(true);
});
Expand All @@ -108,29 +108,42 @@ describe("shouldShowInstanceBadge", () => {
driverKind: acpRegistry,
acpRegistryAgentId: "mistral-vibe",
accentColor: "#ff8800",
enabled: true,
};
expect(shouldShowInstanceBadge(entry, [entry])).toBe(true);
});

it("distinguishes registry instances whose agent identity is unavailable", () => {
const entry = { driverKind: acpRegistry };
const entry = { driverKind: acpRegistry, enabled: true };
expect(shouldShowInstanceBadge(entry, [entry, { ...entry }])).toBe(true);
});

it("shows the badge when the entry has an accent color", () => {
const entry = { driverKind: codex, accentColor: "#ff8800" };
const entry = { driverKind: codex, accentColor: "#ff8800", enabled: true };
expect(shouldShowInstanceBadge(entry, [entry])).toBe(true);
});

it("shows the badge when two entries share a driver, even without an accent", () => {
const first = { driverKind: codex, accentColor: undefined };
const second = { driverKind: codex, accentColor: undefined };
const first = { driverKind: codex, accentColor: undefined, enabled: true };
const second = { driverKind: codex, accentColor: undefined, enabled: true };
expect(shouldShowInstanceBadge(first, [first, second])).toBe(true);
});

it("hides the badge when the other instance sharing the driver is disabled", () => {
const entry = { driverKind: codex, accentColor: undefined, enabled: true };
const disabled = { driverKind: codex, accentColor: undefined, enabled: false };
expect(shouldShowInstanceBadge(entry, [entry, disabled])).toBe(false);
});

it("keeps the badge on a disabled instance that shares a driver with an enabled one", () => {
const enabled = { driverKind: codex, accentColor: undefined, enabled: true };
const disabled = { driverKind: codex, accentColor: undefined, enabled: false };
expect(shouldShowInstanceBadge(disabled, [enabled, disabled])).toBe(true);
});

it("hides the badge for a single instance of a driver with no accent", () => {
const entry = { driverKind: codex, accentColor: undefined };
const other = { driverKind: claude, accentColor: undefined };
const entry = { driverKind: codex, accentColor: undefined, enabled: true };
const other = { driverKind: claude, accentColor: undefined, enabled: true };
expect(shouldShowInstanceBadge(entry, [entry, other])).toBe(false);
});
});
11 changes: 9 additions & 2 deletions 11 packages/client-runtime/src/state/providerInstanceDisplay.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,28 @@ export function normalizeProviderAccentColor(value: string | undefined): string
return /^#[0-9a-fA-F]{6}$/u.test(trimmed) ? trimmed : undefined;
}

/**
* Disabled instances can't be picked, so they never make another instance
* ambiguous, but a disabled entry itself (an old thread's row) still counts
* against the enabled ones.
*/
export function shouldShowInstanceBadge(
entry: {
readonly driverKind: ProviderDriverKind;
readonly accentColor?: string | undefined;
readonly acpRegistryAgentId?: string | undefined;
readonly enabled: boolean;
},
entries: Iterable<{
readonly driverKind: ProviderDriverKind;
readonly acpRegistryAgentId?: string | undefined;
readonly enabled: boolean;
}>,
): boolean {
if (entry.accentColor) return true;
let sharedProviderCount = 0;
let sharedProviderCount = entry.enabled ? 0 : 1;
for (const candidate of entries) {
if (candidate.driverKind !== entry.driverKind) continue;
if (!candidate.enabled || candidate.driverKind !== entry.driverKind) continue;
if (
entry.driverKind === "acpRegistry" &&
candidate.acpRegistryAgentId !== entry.acpRegistryAgentId
Expand Down
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.