Skip to content

Open the source thread directly from the Usage breakdown #946

Closed

Description

@currentbits

Usability proposal. Priority: P2. Small scope. Reviewed 2026-09-06 at 6c7a6fbe.

User outcome

Answer “why did this thread use so much?” directly from Usage, without copying its title into the sidebar and searching again.

Evidence

Usage already offers Model / Day / Project / Thread breakdowns from #556. The thread rows render their labels as plain table cells. UsageViewProps contains no onSelectThread callback and App supplies none. The numbers identify a thread but the view has no way to open it. This is a source-confirmed interaction gap, not a missing cost calculation.

Smallest useful scope

  • Render the thread title in Thread breakdown as an accessible link/button that opens the existing thread.
  • Use its stable thread ID, not a title lookup; duplicate titles must open the right thread.
  • Integrate with the source-view return behavior so range, Cost/Tokens and Thread breakdown survive inspection.
  • Keep rows whose transcript was deleted visible for honest historical accounting, but show an unavailable explanation rather than a broken action.
  • No new analytics, aggregate recomputation, charts, export pipeline or separate detail page.

Acceptance

Click or keyboard activation opens exactly the thread represented by the row. Deleted/missing threads do not crash or navigate to another thread. Numeric cells remain selectable and do not become an oversized click target. Returning preserves the report controls. Unreported/unmetered cost labels and existing #556 caveats remain.

This extends the shipped breakdown in #152/#556; it does not recreate either. Follow the existing onSelectThread interaction used by Digest/Insights.

Sources: Usage props, breakdown cells, App view wiring.

Requested disposition: separate Planboard issue with plan:todo. No implementation in this research task.

Activity

  1. added
    plan:todo
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Sep 6, 2026
  2. currentbits commented on Sep 7, 2026

    @currentbits
    OwnerAuthor

    Implemented on this branch: Thread breakdown titles open by ledger thread id via onSelectThread; deleted rows stay visible as unavailable; App holds range/metric/group so returning from the thread remounts the same report. usageView tests 15/15; typecheck clean. Not committed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions