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(provider-acp-registry): reopening a Kimi thread no longer collapses its model picker to Default by AKolenda · Pull Request #25786 · pingdotgg/t3code

fix(provider-acp-registry): reopening a Kimi thread no longer collapses its model picker to Default #25786

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
maria-rcks merged 4 commits into pingdotgg:main from AKolenda:fix/acp-load-keeps-probed-models
Nov 1, 2026

Uh oh!

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

Merged

fix(provider-acp-registry): reopening a Kimi thread no longer collapses its model picker to Default #25786

Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit Hold shift + click to select a range
9cd8cab
fix(provider-acp-registry): reopening a Kimi thread no longer collaps…
AKolenda Oct 27, 2026
f355acb
fix(provider-acp-registry): apply live option controls to kept models
AKolenda Oct 27, 2026
d03b82b
chore: merge main into kimi model retention fix
maria-rcks Oct 31, 2026
db3cfc7
test(acp): reuse the live configuration regression setup
maria-rcks Oct 31, 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

There are no files selected for viewing

59 changes: 59 additions & 0 deletions 59 packages/provider-acp-registry/src/server/driver.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,65 @@ describe("acpRegistrySnapshotReadiness", () => {
});
});

it("keeps probed models when a loaded session advertises none", () => {
const provider = buildCheckedAcpRegistrySnapshot({
...identity,
settings: decodeSettings({ agentId: "test-agent" }),
checkedAt: "2026-08-13T10:00:00.000Z",
inspection: {
status: "ready",
agentId: "test-agent",
version: "1.0.0",
distribution: "npx",
},
probe: {
probe: {
instanceId: identity.instanceId,
ready: true,
icon: null,
authMethods: [],
models: [{ id: "probe-model", name: "Probe model", description: null }],
currentModelId: "probe-model",
configOptions: [],
sessionManagement: noSessionManagement,
},
slashCommands: [],
skills: [],
},
});

expect(
applyAcpRegistryLiveConfiguration(
provider,
{ models: [], currentModelId: null, configOptions: [] },
[],
).models,
).toEqual(provider.models);

const liveOptions = [
{
id: "effort",
label: "Effort",
type: "select" as const,
options: [{ id: "high", label: "High" }],
currentValue: "high",
},
];
expect(
applyAcpRegistryLiveConfiguration(
provider,
{ models: [], currentModelId: null, configOptions: liveOptions },
[],
).models,
).toMatchObject([
{
slug: "probe-model",
isDefault: true,
capabilities: { optionDescriptors: [{ id: "effort", currentValue: "high" }] },
},
]);
});

it("projects discovery without claiming authentication when no login methods are advertised", () => {
const snapshot = buildCheckedAcpRegistrySnapshot({
...identity,
Expand Down
20 changes: 19 additions & 1 deletion 20 packages/provider-acp-registry/src/server/driver.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,28 @@ export function applyAcpRegistryLiveConfiguration(
customModels: ReadonlyArray<string>,
): ServerProvider {
const { message: _staleProbeMessage, ...snapshot } = provider;
// session/load may omit models (Kimi returns `{}`); keep the probed list
// and apply any live option descriptors to it.
const probedModels = provider.models.filter((model) => !model.isCustom);
const discovery =
configuration.models.length > 0
? configuration
: {
...configuration,
models: probedModels.map((model) => ({
id: model.slug,
name: model.name,
description: null,
})),
currentModelId: probedModels.find((model) => model.isDefault)?.slug ?? null,
};
return {
...snapshot,
status: provider.enabled ? "ready" : provider.status,
models: modelsFromDiscovery(configuration, customModels),
models:
configuration.models.length === 0 && configuration.configOptions.length === 0
? provider.models
Comment thread

@macroscopeapp macroscopeapp Bot Oct 27, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium server/driver.ts:267

When configuration.models is empty but live configOptions are present, this returns provider.models unchanged, so newly advertised controls are omitted and existing choices/current values remain stale. The fallback skips modelsFromDiscovery, which applies those options; preserve the existing model list while still applying the live option descriptors.

🤖 Copy this AI Prompt to have your agent fix this:
In file @packages/provider-acp-registry/src/server/driver.ts around line 267:

When `configuration.models` is empty but live `configOptions` are present, this returns `provider.models` unchanged, so newly advertised controls are omitted and existing choices/current values remain stale. The fallback skips `modelsFromDiscovery`, which applies those options; preserve the existing model list while still applying the live option descriptors.

Sorry, something went wrong.

Uh oh!

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

All reactions

@AKolenda AKolenda Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in f355acb. When the live configuration has no models but does send option controls, the kept probed models are rebuilt through modelsFromDiscovery, so the live controls apply. When it sends neither, which is Kimi's session/load reply {}, the probed list is kept as-is. The extended test in driver.test.ts covers both cases.

Sorry, something went wrong.

Uh oh!

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

macroscopeapp[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction

@macroscopeapp macroscopeapp Bot Oct 27, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I'm unable to act on this request because you do not have permissions within this repository.

Sorry, something went wrong.

Uh oh!

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

All reactions
: modelsFromDiscovery(discovery, customModels),
};
}

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.