Skip to content

Say /todos-widget needs the terminal UI instead of a silent no-op - #468

Merged
ilovepixelart merged 1 commit into
mainfrom
fix-todos-widget-rpc
Nov 16, 2026
Merged

ilovepixelart merged 1 commit into
mainfrom
fix-todos-widget-rpc

Conversation

@ilovepixelart

Copy link
Copy Markdown
Owner
  • `/todos-widget` no longer reports a change that has no effect in RPC mode (`extensions/todo.ts`). It checked only `ctx.hasUI`, which is true in RPC mode, and confirmed `Todo widget: compact`; RPC's `setWidget` ignores factory widgets, and the todo widget is always one, so no mode displayed anything. It now checks `ctx.mode` as `/todos` does and answers `/todos-widget needs the terminal UI; /todos lists the todos`.

  • `npm run check` passes (Biome, strict tsc, Vitest)

  • Tests cover the change

In RPC mode the command confirmed a mode change, but RPC binds a UI
context that ignores widget factories, so no mode ever showed. It now
says the widget needs the terminal UI and points to /todos, as /todos
falls back to a plain list there.
@sonarqubecloud

Copy link
Copy Markdown

@ilovepixelart
ilovepixelart merged commit 1492495 into main Nov 16, 2026
13 checks passed
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