mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 11:59:30 +08:00
In the interactive chat REPL, `/notebook add <ref>` passed the ref straight to _parse_notebook_refs, which raises typer.BadParameter on an empty notebook id (e.g. `/notebook add :`). The REPL loop does not guard the _apply_command call, so the exception propagated out and terminated the whole session — while every other command (bad /config, unparsable shlex input, etc.) just prints a notice and keeps the session alive. Catch BadParameter at the `/notebook add` site, print the message, and continue. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>