Skip to content

showSpeed and showDuration not rendered in expanded layout #221

@xiaodream551-a11y

Description

@xiaodream551-a11y

Bug Description

showSpeed and showDuration are only implemented in the compact layout (renderSessionLine() in session-line.ts). When using the expanded layout, these config options have no effect — the values are never rendered.

Steps to Reproduce

  1. Set lineLayout: "expanded" in config.json
  2. Enable display.showSpeed: true and display.showDuration: true
  3. Observe that neither speed nor duration appears in the status line

Expected Behavior

showSpeed and showDuration should be rendered in expanded layout, just as they are in compact layout.

Root Cause

In the source code:

  • showSpeed is only checked and rendered in src/render/session-line.ts (compact layout). There is no corresponding logic in any of the expanded layout renderers under src/render/lines/.
  • showDuration has the same issue — only rendered in session-line.ts, with no expanded layout equivalent.

Other display options like showTokenBreakdown and showSessionName do have implementations in both layouts (e.g., identity.ts and project.ts), so this appears to be an oversight.

Environment

  • Plugin version: 0.0.10
  • Platform: macOS (Darwin 25.3.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions