Skip to content

fix(doctor): put keep-local before the destructive restore hint - #399

Open
kevin9327 wants to merge 1 commit into
Tencent:mainfrom
kevin9327:fix/doctor-local-changes-hint
Open

kevin9327 wants to merge 1 commit into
Tencent:mainfrom
kevin9327:fix/doctor-local-changes-hint

Conversation

@kevin9327

Copy link
Copy Markdown
Contributor

Summary

When bsk doctor pauses automatic skill updates because of local changes, the remediation hint put both actions on one long line and listed the destructive --force restore last. That made it easy to overwrite local instructions by accident (#396).

Changes

  • Keep-local (recommended) is listed first and labeled
  • Discard/restore is labeled as overwriting existing instructions
  • The two options are on separate lines (\n) instead of one ;-joined line

Testing

cargo test -p bsk --lib paused_skills_warn
# ok

Fixes #396

When automatic skill updates pause for local changes, doctor listed both
actions on one line with the overwrite option last. Put the recommended
keep-local command first, label the restore path as destructive, and
separate the two lines so the overwrite is harder to run by accident.

Fixes Tencent#396

This branch has not been deployed

No deployments
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.

doctor's "local changes detected" hint puts the destructive option last

1 participant