feat(cli): add /doctor diagnostic command (#3404)

Closes #3018
This commit is contained in:
jinye 2026-04-19 19:25:55 +08:00 committed by GitHub
parent c175fd3d4a
commit 9de33dded3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 1016 additions and 1 deletions

View file

@ -38,6 +38,7 @@ const debugLogger = createDebugLogger('NON_INTERACTIVE_COMMANDS');
* - summary: Generate session summary
* - compress: Compress conversation history
* - context: Show context window usage (read-only diagnostic)
* - doctor: Run installation and environment diagnostics (read-only diagnostic)
*/
export const ALLOWED_BUILTIN_COMMANDS_NON_INTERACTIVE = [
'init',
@ -46,6 +47,7 @@ export const ALLOWED_BUILTIN_COMMANDS_NON_INTERACTIVE = [
'btw',
'bug',
'context',
'doctor',
] as const;
/**