Skip to content

/model: ctrl+r refresh never adds the 'models · N · …' note the manual quotes #1741

Open

Description

@AbirAbbas

What happened

Found on 2026-10-02 during the pre-staging happy-path pass on dev 06a3283dd. The path is unchanged since v0.6.0 (61da16199).

In /model, pressing ctrl+r fetches the list (fetching the newest list… shows, then the list restocks), but the conversation never gets the completion note. Repeated in a fresh conversation with the same result.

commands.md, "Refreshing the model list", says: "When it lands … the conversation gets one note: models · 612 · 9 new · and up to three of the new ids, or models · 612 · nothing new." After closing the picker, the conversation shows only · new conversation · proj.

Replication

Field (real router, no model call). A profile with an OpenRouter key and the default model sources. codeaf in any folder, then /model, ctrl+r, wait for fetching the newest list… to clear, then esc. Today no models · … note appears in the transcript. Under a minute, no spend.

Deterministic. The all-provider restock path in internal/tui3/servicelands_test.go drives the same branch. Today it asserts the restock and no note.

Where

internal/tui3/modelrefresh.go: the all-provider branch restocks the list and returns before the modelsNote path that the single-fetch branch reaches (modelrefresh_test.go pins models · 4 · nothing new for the single fetch only). cmd/codeaf/chatv3_process.go supplies the all-provider refresh, so the shipped binary always takes the branch without the note.

The fix

The all-provider refresh ends with the same one note the page quotes (models · N · K new · … or models · N · nothing new, or the one-line failure), once, when every provider has answered or the fifteen-second ceiling ends the wait. Or the page says it does not.

Acceptance

  • e2e: tmux drive of /model → ctrl+r → esc on a stub router: the transcript contains models · <n> · nothing new.
  • Unit: the all-provider restock test asserts exactly one note.

Activity

  1. added
    bug
    on Oct 3, 2026
  2. added
    area:chat
    sev:papercut
    on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:chatbugsev:papercut

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions