Skip to content

feat(context): add the update reminders setting via rpc - #11

Merged
aiev merged 1 commit into
masterfrom
feat/update-reminders-setting
Oct 9, 2026
Merged

aiev merged 1 commit into
masterfrom
feat/update-reminders-setting

Conversation

@aiev

@aiev aiev commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Adds an Update reminders toggle to /todo-settings, default on.

What it does

While a session has a todo list, the server plugin injects a constant line into system asking the model to update statuses in the same step instead of batching:

Keep the session todo list current in the same step: mark finished items completed immediately, never in batch, and set the next item in_progress before starting it.

The line is sticky per session: it appears from the first list onward and never changes afterward — including when the last task closes — so it stays cache-neutral. Sessions that never write a list are untouched.

Why RPC

The TUI settings menu stores its preferences in the TUI plugin's own storage, but this setting controls server-side context behavior. The server plugin now exposes an aiev.todolist RPC (getSettings/setSettings) and the TUI menu reads and writes through context.client.rpc(...), following the documented V2 plugin RPC pattern. This also gives future server-behavior settings a home in the same menu.

Misc

  • @opencode/plugin added to peerDependencies (runtime import of @opencode/plugin/rpc).
  • Tests: 53 passing (4 new: RPC defaults/persistence, sticky byte-identical line, toggle off, stored setting survives setup).
  • README documents the setting.

A constant, byte-identical system line asks the model to update todo statuses in the same step instead of batching. It is sticky per session (from the first list onward, including after the last task closes), so the head never changes and the prompt cache is untouched. Sessions without a list are unaffected.

The toggle lives in /todo-settings; the server plugin owns the value, so the TUI reads and writes it through a new aiev.todolist RPC (getSettings/setSettings), the documented V2 pattern for a TUI plugin calling a server plugin.
@aiev
aiev merged commit e22a580 into master Oct 9, 2026
2 checks passed
@aiev
aiev deleted the feat/update-reminders-setting branch October 12, 2026 18:29
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