Repository navigation
fix(list): log the TUI's enable and disable toggles - #990
Merged
Merged
Conversation
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.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type
proposals/only — see CONTRIBUTING.md)approvedlabel)Linked Issue
No issue. Listed under "Not in this PR" in #989.
What was wrong
Pressing
tin theskillshare listTUI enables or disables a skill or agent by changing.skillignoreor.agentignore.skillshare enable/disableand the dashboard toggle write an oplog entry for the same change; the TUI wrote none.skillshare logand the dashboard's log page showed no trace of a skill the TUI turned off.Fix
The TUI toggle now writes an
enableordisableentry:name(the item's path),kind(skilloragent) andvia: tui, as the restore TUI marks its entries;okwhen the ignore file changed;errorwith the reason when another rule blocks the toggle or the ignore file cannot be written;Global mode logs to the global state dir. Project mode logs to the project's own log, through
config.ProjectConfigPath.reference/commands/log.mdand its four translations now listenableanddisableamong the logged commands and describe the TUI entry.Tests
TestToggleKey_WritesOplogpressestand reads the oplog. Its cases:Each fails without the fix (no entry), and the write-error case also fails when only changed toggles are logged.
Checks
make checkpasses in the devcontainer.python3 scripts/ai-context.py checkpasses.Not covered
config.ProjectConfigPath(root), and reaching it means running the TUI in a terminal.patterns, while the TUI and the dashboard recordname. This PR keeps the dashboard's shape.Checklist
make check) — for code changes