Skip to content

fix(list): log the TUI's enable and disable toggles - #990

Merged
runkids merged 1 commit into
mainfrom
runkids/tui-toggle-oplog
Nov 23, 2026
Merged

runkids merged 1 commit into
mainfrom
runkids/tui-toggle-oplog

Conversation

@runkids

@runkids runkids commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only — see CONTRIBUTING.md)
  • Approved feature or large change (the linked issue has the approved label)

Linked Issue

No issue. Listed under "Not in this PR" in #989.

What was wrong

Pressing t in the skillshare list TUI enables or disables a skill or agent by changing .skillignore or .agentignore. skillshare enable/disable and the dashboard toggle write an oplog entry for the same change; the TUI wrote none. skillshare log and the dashboard's log page showed no trace of a skill the TUI turned off.

Fix

The TUI toggle now writes an enable or disable entry:

  • args: name (the item's path), kind (skill or agent) and via: tui, as the restore TUI marks its entries;
  • status ok when the ignore file changed;
  • status error with the reason when another rule blocks the toggle or the ignore file cannot be written;
  • no entry when nothing changed, as with the CLI.

Global mode logs to the global state dir. Project mode logs to the project's own log, through config.ProjectConfigPath.

reference/commands/log.md and its four translations now list enable and disable among the logged commands and describe the TUI entry.

Tests

TestToggleKey_WritesOplog presses t and reads the oplog. Its cases:

  • disabling a skill;
  • enabling an agent;
  • an enable blocked by a glob;
  • a write error.

Each fails without the fix (no entry), and the write-error case also fails when only changed toggles are logged.

Checks

  • make check passes in the devcontainer.
  • python3 scripts/ai-context.py check passes.

Not covered

  • Project mode has no test of its own. The project caller passes config.ProjectConfigPath(root), and reaching it means running the TUI in a terminal.
  • The CLI records patterns, while the TUI and the dashboard record name. This PR keeps the dashboard's shape.

Checklist

  • I've read CONTRIBUTING.md, including its AI-assisted contributions section
  • I've reviewed every line of the diff and can explain it
  • Tests included and passing (make check) — for code changes
  • No unrelated changes in the diff
  • Scope is focused — one concern per PR

Pressing t in the `skillshare list` TUI changes .skillignore or
.agentignore as `skillshare enable/disable` and the dashboard do, but it
wrote no oplog entry, so `skillshare log` showed no trace of a skill or
agent the TUI turned off.

The toggle now logs an `enable` or `disable` entry with the item's path,
its kind and `via: tui`, as the restore TUI marks its entries. A toggle
that another rule blocks, or that fails to write, is logged as an error
with the reason. A toggle that changed nothing writes no entry, as with
the CLI. Global mode logs to the global state dir and project mode to
the project's own log.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T04:50:10.702415Z 3ae7c58 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@runkids
runkids merged commit 621d9b8 into main Nov 23, 2026
10 checks passed
@runkids
runkids deleted the runkids/tui-toggle-oplog branch November 23, 2026 04:55
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