Skip to content

chat: the unconnected custom row on /connect keeps its vendored name - #1195

Merged
AbirAbbas merged 2 commits into
devfrom
fix/connect-custom-row-keeps-its-name
Sep 18, 2026
Merged

AbirAbbas merged 2 commits into
devfrom
fix/connect-custom-row-keeps-its-name

Conversation

@AbirAbbas

Copy link
Copy Markdown
Collaborator

What a person saw

Open /connect on a profile with no custom connection yet. The row that adds one reads

· custom                                        address · key

The manual (services.md, commands.md), the README and #1107 all send them looking for Custom OpenAI-compatible API. Found while verifying the staging build of #1194 (lane frame D4-connect-rows, reproduced on a fresh CODEAF_HOME).

Why

modelConnectionStatus in internal/tui3/modelservices.go renames every custom-id row to the connection's Written word so that a connected instance is called what the person called it. The catalog template's Written is the bare id custom, so the rename also hit the unconnected row. Came in with #1194 (the line is new since v0.2.1).

What changed

Only a connected instance (held) takes its Written name; the unconnected template keeps its vendored name. The contract test TestTheUnconnectedCustomRowKeepsItsVendoredNameAndAConnectedOneTakesThePersons draws both rows and is red on the tree without the fix:

--- FAIL: TestTheUnconnectedCustomRowKeepsItsVendoredNameAndAConnectedOneTakesThePersons (0.00s)
    modelservices_test.go:1982: the unconnected custom row is drawn "custom", want "Custom OpenAI-compatible API"

Validation contract

  • With no custom connection, the /connect row and its Providers twin read Custom OpenAI-compatible API.
  • A connected custom instance the person named alpha reads alpha on the same rows.
  • Something else appears nowhere.

🤖 Generated with Claude Code

AbirAbbas and others added 2 commits September 18, 2026 11:29
modelConnectionStatus renamed every custom-id row to the connection's
Written word, and the catalog template's Written is the bare id, so a person
who had connected nothing yet saw `custom` where the manual, the README and
#1107 all say `Custom OpenAI-compatible API`. Only a connected instance is
called what the person called it now. The contract test draws both rows —
the unconnected template and a connected instance named alpha — and is red
on the tree without the fix.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@AbirAbbas
AbirAbbas merged commit 4add9c9 into dev Sep 18, 2026
3 checks passed
@AbirAbbas
AbirAbbas deleted the fix/connect-custom-row-keeps-its-name branch September 18, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant