Skip to content

tray glance: error detail is truncated mid-identifier, and the header count can disagree with the list beneath it #934

Closed

Description

@Dumbris

Two low-severity findings from live QA of the glance section (#930). Both are cosmetic; neither blocks that PR.

1. Error detail cut mid-identifier

GlanceSection.firstClause splits the error message on the first ., : or newline. Because mcpproxy error text routinely embeds a server:tool identifier, the split lands inside the identifier. Observed:

  • Real core message: invalid arguments for memory:create_entities: at '/entities': got string, want array
  • Rendered: memory:create_entities · invalid arguments for memory — 8s

It reads as though the server named memory were at fault. This is the common case for mcpproxy errors, not an edge case. The full message is still available in the tooltip.

Suggested fix: skip separators that fall inside a server:tool token, or split on ": " (colon-space) rather than a bare colon.

2. Header count disagrees with the list

Two separate causes, same symptom:

  • The header counts all clients while the list caps at 5 rows, with no "+N more" affordance — observed "11 clients" above 5 rows.
  • The header count comes from the 30s usage poll while the rows arrive over SSE, so immediately after a call the header can contradict the rows below it — observed header "12 calls this hour" sitting above a 5-second-old row that had already made it 13.

Suggested fix: add a "+N more" row when truncating, and derive the header from the same SSE-updated state the rows use so the two cannot drift.

Activity

  1. Dumbris commented on Aug 1, 2026

    @Dumbris
    MemberAuthor

    Fixed in #945 (merged as b30407fea).

    (a) Clause truncation. The error-detail splitter no longer cuts inside a server:tool identifier:

    input : invalid arguments for memory:create_entities: at '/entities': got string, want array
      before: invalid arguments for memory                 <- accuses the server
      after : invalid arguments for memory:create_entities
    input : failed to connect to 127.0.0.1:8080: connection refused
      before: failed to connect to 127     after: failed to connect to 127.0.0.1:8080
    

    Sentence and newline splits are unchanged. Any … still seen in the menu is the display-width truncation applied after the clause is kept whole, not the splitter.

    (b) Header/list disagreement. Verified reconciled live: 8 extra MCP sessions → menu showed 5 client rows + +4 more under a header reading 9 active (5+4=9). Call count tracked correctly too: baseline 1 call this hour → 3 real tool calls → 4 calls this hour within 3s, stable across later polls (no double-count, no drop-back).

    Left open per the repo's manual-closure convention.

  2. Dumbris commented on Aug 2, 2026

    @Dumbris
    MemberAuthor

    Shipped in v0.53.0-rc.4 (published 2026-08-01). Verified live before merge: the error clause keeps server:tool identifiers whole, and the header count reconciles with the list (5 rows + +4 more under 9 active).

    Closing now that the fix is in a testable build. Reopen if it does not behave as described on a real install.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions