Skip to content

feat: copy session details button in Context Health#116

Merged
KyleNesium merged 1 commit intomainfrom
feat/copy-session-details
Mar 14, 2026
Merged

feat: copy session details button in Context Health#116
KyleNesium merged 1 commit intomainfrom
feat/copy-session-details

Conversation

@KyleNesium
Copy link
Copy Markdown
Owner

Summary

  • Copy session details button in Context Health header — clipboard icon next to refresh button copies full session details as aligned plain text
  • Output includes exact token counts (not abbreviated), model, project, branch, duration, velocity, warnings, and suggested actions
  • Green checkmark feedback for 1.5s after copy
  • 6 new tests for SessionInfoFormatter.copyableDetails()

Example clipboard output:

Context Health
─────────────
Session:  abc-12345-def
Model:    Opus 4.6
Project:  AIBattery
Branch:   feat/login
Context:  50000/160000 (31%)
Input:    30000
Output:   20000
Turns:    42
Duration: 2h 15m
Velocity: 350 tok/min

Test plan

  • Build and verify copy button appears next to refresh in Context Health
  • Click copy → verify clipboard contains formatted session details
  • Verify green icon feedback appears for ~1.5s
  • Collapsed state: button hidden (only shows when expanded)
  • Run swift test — 6 new SessionInfoFormatter tests pass

- New clipboard button in Context Health header (next to refresh)
  copies full session details: exact token counts (not abbreviated),
  model, project, branch, duration, velocity, warnings, and actions.
- SessionInfoFormatter.copyableDetails() formats as aligned plain text
  with header separator for clean terminal/chat pasting.
- 6 new tests for copyableDetails: header, session ID, model, project/
  branch, exact token counts, empty field omission.
- Specs updated (ARCHITECTURE.md, UI_SPEC.md)
@KyleNesium KyleNesium merged commit b2c568c into main Mar 14, 2026
1 check failed
@KyleNesium KyleNesium deleted the feat/copy-session-details branch March 14, 2026 20:26
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