Skip to content

Render sessions without opaque routing keys #981

Closed

Description

@RomneyDa

Summary

Windows session navigation renders opaque Gateway routing keys and treats evolving key suffixes as a fixed schema.

Observed behavior

Session titles and truncation tooltips can show values such as:

  • agent:main:telegram:main:direct:<peer>
  • agent:main:tui-<uuid>:heartbeat

The current parser reads only part of the Gateway session row, expects legacy property names for provider/group metadata, and title formatting assumes agent:<agent>:<slot>.

Expected behavior

  • Prefer the Gateway session presentation contract when available.
  • Fall back to bounded, human-readable titles for older Gateways without showing full peer IDs, UUIDs, hashes, or routing keys.
  • Treat the raw key as an opaque routing value kept for copy/details and actions.
  • Group using structured agent metadata.
  • Hide cron, heartbeat, dreaming, subagent, ACP, hook, harness, and internal sessions from ordinary conversation navigation by default, with an explicit background-session view.

Impact

Affected: Windows app users with generated, channel, subagent, automation, or multi-agent sessions.

Severity: Medium usability issue.

Frequency: Consistent whenever unnamed generated sessions are returned.

Consequence: users cannot identify conversations reliably and background execution rows crowd the chat/session navigation.

Evidence

Observed in the Windows app session selector. Source audit confirms the formatter uses fixed colon positions and the Gateway parser ignores the current label, modelProvider, groupChannel, worktree/node, lineage, and presentation fields.

Activity

  1. added
    P2
    impact:ux-friction
    issue-rating: 🐚 platinum hermit
    clawsweeper:needs-live-repro
    clawsweeper:no-new-fix-pr
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    on Jul 13, 2026
  2. clawsweeper commented on Jul 13, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 13, 2026, 4:46 PM ET / 20:46 UTC.

    Summary
    This detailed, maintainer-authored issue should remain open: the requested Gateway presentation contract, privacy-bounded fallback titles, and explicit background-session navigation are not proven implemented on the supplied current main, and no canonical open or merged fix owns the work.

    Reproducibility: no. live high-confidence reproduction was established during this read-only review, but the supplied examples and source audit map directly to the current formatter, visibility service, parser, and Sessions page, making the defect source-reproducible with medium confidence.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Include the exact command, prompt, or workflow that triggered it.
    • Add expected vs actual behavior.

    Next step
    A maintainer should first confirm whether background-session visibility ships with the presentation fix or as a follow-up; after that choice, the implementation path is concrete.

    Maintainer decision needed

    • Question: Should the first implementation include both contract-driven titles and a new background-session view, or should the visibility UX be split into a follow-up after the parser and presentation projection land?
    • Rationale: Structured titles are a bounded compatibility fix, while deciding which execution categories disappear by default and how users reveal them establishes a broader navigation policy.
    • Likely owner: RomneyDa — They authored the detailed contract and UX proposal and are best positioned to confirm whether the visibility work is one product change or a follow-up.
    • Options:
      • Split presentation and visibility (recommended): Land structured parsing, safe titles, and agent grouping first, then implement the explicit background-session view in a separately reviewed UX change.
      • Deliver one complete navigation change: Implement presentation, grouping, default filtering, and the background-session view together with current-head WinUI proof for the full workflow.
    Review details

    Best possible solution:

    Introduce a typed session-presentation projection that consumes structured Gateway presentation, agent, grouping, and lineage fields first; retain the opaque key only for identity/actions, add privacy-bounded compatibility fallbacks, and drive a clearly labeled background-session view from structured classification.

    Do we have a high-confidence way to reproduce the issue?

    No live high-confidence reproduction was established during this read-only review, but the supplied examples and source audit map directly to the current formatter, visibility service, parser, and Sessions page, making the defect source-reproducible with medium confidence.

    Is this the best way to solve the issue?

    Yes for the title defect: structured Gateway presentation with a bounded compatibility fallback is safer than parsing evolving opaque keys. The background-session view is also reasonable, but its default visibility policy should be explicitly confirmed or split from the parser fix.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • Gateway presentation-field availability and compatibility behavior across older Gateway versions need focused contract tests before replacing legacy parsing.
    • The proposed default-hidden categories and explicit background-session view introduce a navigation policy choice that should not be inferred solely from routing-key suffixes.
    • Fallback titles must remain bounded and privacy-preserving without collapsing distinct sessions into indistinguishable rows.

    Codex review notes: model internal, reasoning high; reviewed against 77c42440376e.

    Label changes

    Label changes:

    • add P2: The issue describes a consistent usability defect affecting session identification and navigation, but not data integrity or core runtime availability.
    • add impact:ux-friction: Opaque routing keys and intermingled background rows make conversations difficult to identify without fully blocking setup or first use.
    • add issue-rating: 🐚 platinum hermit: Current issue advisory state selects this label.
    • add clawsweeper:needs-live-repro: Current issue advisory state selects this label.
    • add clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.
    • add clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.
    • add clawsweeper:needs-product-decision: Current issue advisory state selects this label.

    Label justifications:

    • P2: The issue describes a consistent usability defect affecting session identification and navigation, but not data integrity or core runtime availability.
    • impact:ux-friction: Opaque routing keys and intermingled background rows make conversations difficult to identify without fully blocking setup or first use.
    Evidence reviewed

    What I checked:

    • Current title surface: The current repository contains a dedicated session-title formatter, matching the reported fixed-position routing-key formatting boundary but not proving support for the requested Gateway presentation contract. (src/OpenClaw.Tray.WinUI/Services/SessionTitleFormatter.cs, 77c42440376e)
    • Current visibility surface: Session visibility is already a distinct service, making the requested background-session classification a concrete extension of an existing seam rather than an unrelated navigation rewrite. (src/OpenClaw.Tray.WinUI/Services/SessionVisibilityFilter.cs, 77c42440376e)
    • Navigation surface: The Sessions page is the user-facing integration point for titles, grouping, tooltips, and visibility behavior described by the issue. (src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml.cs, 77c42440376e)
    • Detailed current-behavior report: The issue supplies representative routing keys, identifies legacy parser assumptions, lists missing Gateway fields, and reports consistent visible behavior in the Windows session selector.
    • No canonical fix identified: The two supplied merged references concern Settings/Permissions and WSL setup respectively; neither owns session presentation or background-session navigation.
    • Release state: The supplied latest release is v0.6.12 at 4166e0f, and no evidence establishes that release or current main as implementing this newly reported behavior. (4166e0fd63f8)

    Likely related people:

    • RomneyDa: They supplied the current source audit, concrete Gateway metadata expectations, privacy boundary, and proposed background-session UX, making them the strongest available owner for scope clarification. (role: issue author and product-direction proposer; confidence: high; files: src/OpenClaw.Tray.WinUI/Services/SessionTitleFormatter.cs, src/OpenClaw.Tray.WinUI/Services/SessionVisibilityFilter.cs, src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml.cs)
    • ranjeshj: Their merged work in Remove fake/sample data from 6 UI pages #275 replaced fake data on the Chat and Sessions pages, directly connecting them to the current session data path. (role: recent session-page contributor; confidence: medium; files: src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml, src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml.cs)
    • RBrid: Their merged page refactor in Companion application refactoring #272 covered the tray page architecture that contains session navigation, making them a useful adjacent reviewer. (role: adjacent tray-page refactor contributor; confidence: medium; files: src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml, src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml.cs)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  3. moved this from Backlog to UX in Windows Companion Appon Jul 13, 2026
  4. moved this from Local Gateway to Channels in Windows Companion Appon Jul 21, 2026
  5. locked as resolved and limited conversation to collaborators on Jul 23, 2026
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

    P2clawsweeper:needs-live-reproclawsweeper:needs-maintainer-reviewclawsweeper:needs-product-decisionclawsweeper:no-new-fix-primpact:ux-frictionissue-rating: 🐚 platinum hermit

    Type

    No type

    Fields

    Priority

    Medium

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions