Skip to content

Simplify: dedupe optional-key resolution, status cells, doctor checks#48

Merged
alexkroman merged 3 commits into
mainfrom
claude/codebase-simplify-mqpf1a
Jun 9, 2026
Merged

Simplify: dedupe optional-key resolution, status cells, doctor checks#48
alexkroman merged 3 commits into
mainfrom
claude/codebase-simplify-mqpf1a

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator
  • config.resolve_api_key_optional centralizes the NotAuthenticated-swallowing
    that init/keys and onboard's _has_key each re-implemented.
  • theme.status_text wraps the repeated Text(value, status_style(value)) used by
    transcripts/sessions list rendering (drops two rich.text imports).
  • doctor._check collapses the repeated Check dict literals into one builder.

https://claude.ai/code/session_01VCThQ9Rcvt28CQhyx6qPts

claude and others added 3 commits June 9, 2026 05:54
- config.resolve_api_key_optional centralizes the NotAuthenticated-swallowing
  that init/keys and onboard's _has_key each re-implemented.
- theme.status_text wraps the repeated Text(value, status_style(value)) used by
  transcripts/sessions list rendering (drops two rich.text imports).
- doctor._check collapses the repeated Check dict literals into one builder.

https://claude.ai/code/session_01VCThQ9Rcvt28CQhyx6qPts
These tests bound the single fixed LOOPBACK_PORT in a worker thread for every
case. Under CI load + random ordering a server could still hold the port when
the next test's worker bound it, raising APIError inside the thread (surfacing
as PytestUnhandledThreadExceptionWarning, which the suite treats as an error)
and cascading into neighbouring tests. Give each test its own OS-assigned port
so the cases stop sharing a network resource; capture_callback is unchanged.

https://claude.ai/code/session_01VCThQ9Rcvt28CQhyx6qPts
@alexkroman alexkroman merged commit eb40036 into main Jun 9, 2026
11 checks passed
@alexkroman alexkroman deleted the claude/codebase-simplify-mqpf1a branch June 9, 2026 14:29
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