t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: ACP Registry Cline "Sign in with Cline" resets model selection to "provider default" and breaks thread session

Open kridaydave opened this issue 1 month ago • 1 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Install/use built-in ACP Registry Cline provider.
  2. Click "Sign in with Cline", complete auth flow, close dialog.
  3. Observe model selector switches to "provider default" and thread fails to create provider session (provider-session:provider-instance:acpRegistry_cline:...).
  4. Restarting/re-selecting model doesn't persist.

Expected behavior

after successful auth, previous selection should remain; thread session should create successfully. If no model valid, keep last selection and show clear prompt.

Actual behavior

selector resets to "provider default"; session creation fails with the error above.

Impact

Major degradation or frequent failure

Version or commit

t3code @ current main

Environment

inux (Fedora 44), t3code @ current main, Cline 3.0.69 (acpRegistry).

Logs or stack traces

Failed to open acpRegistry provider session provider-session:provider-instance:acpRegistry_cline:thread:9695b1cb-9c2c-4d04-a72f-ee0c644f224b:a1b5d032-805a-4b35-b8bb-c060e5fa5d7c.

Screenshots, recordings, or supporting files

No response

Workaround

None found.

kridaydave avatar Oct 13 '26 17:10 kridaydave

[!NOTE] Grok responding on behalf of Julius.

This is a duplicate of #18586, so I'm closing it in favor of that issue. Sign-in isn't the cause.

Cline's session/new lists its auth provider selector first and tags it category: "model", before the real model option. On main, extractModelConfigId() in packages/provider-acp/src/server/runtimeModel.ts takes the first category: "model" option. So T3 writes your chosen model id into provider, the value check rejects it, and you get Failed to open acpRegistry provider session. #17072 is the same Cline failure. The earlier fix attempt (#15620) was closed without merging.

Please follow #18586 for the fix. Picking the first option matches the ACP spec, so it would also help to ask Cline to stop tagging its provider selector as model. If this still fails after #18586 is resolved, comment and we'll reopen.

juliusmarminge avatar Oct 13 '26 17:10 juliusmarminge