Skip to content

An expired credential reads as disconnected, not Connected - #273

Merged
czpython merged 1 commit into
mainfrom
commonzenpython/eng-859-harness-panel-shows-connected-for-an-expired-token
Aug 17, 2026
Merged

An expired credential reads as disconnected, not Connected#273
czpython merged 1 commit into
mainfrom
commonzenpython/eng-859-harness-panel-shows-connected-for-an-expired-token

Conversation

@czpython

Copy link
Copy Markdown
Owner

What

The Settings → Services harness panel showed a Claude credential as Connected even after its token had expired, disagreeing with druks doctor (which reported the same credential as expired).

HarnessResponse.from_row derived connection state from row-existence alone (bool(connection)), so any credential row read as Connected regardless of expires_at. This now applies the same expiry check doctor makes: a credential is connected only when it exists and is unexpired. An expired token reads as Not connected and prompts a reconnect.

Also shortens the settings rail item and pane heading from Browser sessions to Browser.

Test

  • Added test_harness_card_reads_expired_token_as_not_connected — a past expires_at reports connected: false.
  • Existing settings and SettingsModal tests updated/passing.

Closes ENG-859.

The harness panel derived connection state from row-existence alone, so a
credential whose token had expired still showed Connected with a past expiry
date — disagreeing with druks doctor. HarnessResponse.from_row now compares
expires_at to now, the same check doctor makes, so an expired credential reads
as not connected and prompts a reconnect.

Also shortens the settings rail item and pane heading from Browser sessions to
Browser.
@czpython
czpython force-pushed the commonzenpython/eng-859-harness-panel-shows-connected-for-an-expired-token branch from 4221950 to dd87168 Compare August 17, 2026 11:14
@czpython
czpython enabled auto-merge (squash) August 17, 2026 11:14
@czpython
czpython merged commit 20188eb into main Aug 17, 2026
2 checks passed
@czpython
czpython deleted the commonzenpython/eng-859-harness-panel-shows-connected-for-an-expired-token branch August 17, 2026 11:17
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.

1 participant