Skip to content

feat(cli): add verbose diagnostics mode#68

Merged
michiosw merged 1 commit into
mainfrom
feat/cli-verbose-diagnostics
Apr 18, 2026
Merged

feat(cli): add verbose diagnostics mode#68
michiosw merged 1 commit into
mainfrom
feat/cli-verbose-diagnostics

Conversation

@michiosw
Copy link
Copy Markdown
Contributor

@michiosw michiosw commented Apr 16, 2026

Summary

  • Adds kontext start --verbose and KONTEXT_DEBUG=1 as equivalent opt-in diagnostics modes.
  • Adds shared diagnostic helpers with redaction before any raw details reach stderr.
  • Keeps default output focused on human summaries.

Why

Normal runs should be quiet, but debugging still needs enough detail to be useful. This gives developers one explicit verbose path and keeps tokens, auth codes, headers, cookies, and OAuth URLs out of terminal output.

Before / After Terminal Capture

Before, raw details had no common redaction/output path:

⚠ Could not create hosted connect session (connect session request failed: 502 Bad Gateway: ...)

After, normal output stays concise and diagnostics are opt-in:

⚠ Could not create hosted connect session.

With --verbose or KONTEXT_DEBUG=1, sensitive values are redacted:

hosted connect session error: token exchange failed: Authorization: Bearer [REDACTED] code=[REDACTED]

Verification

  • Ran go test ./... on this branch.

Copy link
Copy Markdown
Contributor Author

michiosw commented Apr 16, 2026

chatgpt-codex-connector[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@michiosw michiosw force-pushed the feat/cli-agent-preflight branch from 81dc3e6 to 97d7ef9 Compare April 17, 2026 07:02
@michiosw michiosw force-pushed the feat/cli-verbose-diagnostics branch from f049192 to 258cfb8 Compare April 17, 2026 07:02
@michiosw michiosw requested a review from tumberger April 17, 2026 07:08
@michiosw michiosw force-pushed the feat/cli-agent-preflight branch from 97d7ef9 to af1783e Compare April 17, 2026 07:12
@michiosw michiosw force-pushed the feat/cli-verbose-diagnostics branch from 258cfb8 to 7f700ff Compare April 17, 2026 07:12
chatgpt-codex-connector[bot]

This comment was marked as resolved.

@michiosw michiosw force-pushed the feat/cli-verbose-diagnostics branch 2 times, most recently from 2b3a4fc to d01266e Compare April 17, 2026 07:22
@michiosw michiosw force-pushed the feat/cli-agent-preflight branch from af1783e to abc4ea2 Compare April 17, 2026 07:22
chatgpt-codex-connector[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@michiosw michiosw force-pushed the feat/cli-verbose-diagnostics branch 2 times, most recently from 168c746 to 2f9f9c5 Compare April 17, 2026 07:31
tumberger
tumberger previously approved these changes Apr 17, 2026
Copy link
Copy Markdown
Contributor Author

michiosw commented Apr 18, 2026

Merge activity

  • Apr 18, 12:43 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Apr 18, 12:47 PM UTC: Graphite rebased this pull request as part of a merge.
  • Apr 18, 12:49 PM UTC: @michiosw merged this pull request with Graphite.

@michiosw michiosw changed the base branch from feat/cli-agent-preflight to graphite-base/68 April 18, 2026 12:44
@michiosw michiosw changed the base branch from graphite-base/68 to main April 18, 2026 12:46
@michiosw michiosw dismissed tumberger’s stale review April 18, 2026 12:46

The base branch was changed.

@michiosw michiosw force-pushed the feat/cli-verbose-diagnostics branch from 2f9f9c5 to 8fb98e9 Compare April 18, 2026 12:47
@michiosw michiosw merged commit 8de7536 into main Apr 18, 2026
4 of 5 checks passed
@michiosw michiosw deleted the feat/cli-verbose-diagnostics branch April 18, 2026 12:49
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.

2 participants