Files
Jiangzhou a821c20a64 feat(doctor): surface daemon-side exception tracebacks (#173) (#177)
When a daemon-side `ccc doctor` check failed (e.g. the model check), only a
one-line, 500-char-truncated summary reached the CLI; the full traceback was
logged to daemon.log but never surfaced, making failures hard to debug.

Carry the full traceback across both daemon→CLI error paths:

- Per-check failures: add `traceback` to `EmbeddingCheckResult` and
  `DoctorCheckResult`; `check_embedding` captures `format_exc()` and
  `_check_model` propagates it. The CLI prints it dimmed under the error.
- Streaming exceptions: add `traceback` to `ErrorResponse`, populated by the
  daemon's streaming handler and appended to the client-raised RuntimeError.

Both new fields default to None, keeping the msgpack wire format
backward-compatible.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-03 09:49:57 -07:00
..