Skip to content

broken view tools call native vs normal brovser view #894

Closed as not planned

Description

@danilovmy

sometimes agent calls tools and tell me about it. But i see - in native chat view the tools call is not same as in browser chat view.

Native

Image

Browser:

Image

It is not a big bug, but i see the difference.

Version: windows 10

Image

Activity

  1. clawsweeper commented on Jun 30, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed September 3, 2026, 12:42 PM ET / 16:42 UTC.

    Summary
    Keep open. The released native projection now preserves live tool identities, but current history replay can still consume cached metadata by position and attach a flattened result to the wrong native tool row. The open replacement PR at #1298 owns that remaining repair.

    Reproducibility: yes. from current source. A structured history call consumes and discards the first cached record, then a later flattened result receives the next record by queue position rather than matching its tool-call identity.

    Root-cause cluster
    Relationship: canonical
    Canonical: #894
    Summary: This issue remains the canonical report for native tool-identity parity; prior merged fixes addressed live correlation, while the open replacement PR addresses the remaining historical collision.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Next step
    An open collaborator-authored repair at #1298 already owns the narrow remaining history-correlation fix, so a second repair branch would duplicate work.

    Review details

    Best possible solution:

    Review and land the existing repair, preserving the ledger’s ChatHistoryLoader and ChatMetadataStore ownership while proving that structured and flattened historical tool rows retain separate identities and outputs.

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

    Yes, from current source. A structured history call consumes and discards the first cached record, then a later flattened result receives the next record by queue position rather than matching its tool-call identity.

    Is this the best way to solve the issue?

    Yes for the current routing. The open repair targets the responsible history-loader and metadata-store boundary rather than adding another native rendering path.

    AGENTS.md: found and applied where relevant.

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

    Label changes

    Label justifications:

    • P2: The bug affects native Chat history presentation but has a bounded, non-blocking user impact and an active repair path.
    • impact:ux-friction: Incorrect tool labels or outputs in native Chat make activity harder to understand than the browser view without preventing use.
    Evidence reviewed

    What I checked:

    • Current history replay is positional: Current main sorts cached tool metadata by timestamp, then TryMatchCachedTool dequeues the next entry without considering its tool-call identifier. The existing focused test explicitly describes this as positional matching. (src/OpenClaw.Tray.WinUI/Chat/ChatMetadataStore.cs:522, bd7702c5149a)
    • Structured history consumes cached metadata before flattened output: During structured call replay, the loader invokes the positional matcher and discards its return value. A later flattened tool result invokes it again and uses the next cached identity, which can misassociate visible identity and output ownership. (src/OpenClaw.Tray.WinUI/Chat/ChatHistoryLoader.cs:762, bd7702c5149a)
    • Earlier live-identity repair is released but incomplete for replay: Current main contains the native identity projector, and release containment shows the related merged identity and event-correlation repairs are included in v2026.7.1 through v2026.7.1-3. This does not repair the remaining positional history-correlation path. (src/OpenClaw.Tray.WinUI/Chat/NativeToolProjector.cs:50, bd7702c5149a)
    • Open repair already owns the remaining defect: The supplied GitHub context identifies fix(chat): keep flattened tool results with the correct tool #1298 as an open, collaborator-authored replacement for the unmerged earlier history-cache PR. Its stated scenario is the same structured-versus-flattened metadata collision and it includes native UI Automation and screenshot evidence. (b95d803d42db)
    • Current area history: Recent history records the extracted history-loader and metadata-store ownership under the native Chat refactor, following the two merged tool-identity repairs. (src/OpenClaw.Tray.WinUI/Chat/ChatHistoryLoader.cs:20, f8a8825ccbb4)

    Likely related people:

    • Barbara Kudiess: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    • Scott Hanselman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    • Vitor Cepeda Lopes: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    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.
  2. added
    P3
    impact:other
    issue-rating: 🐚 platinum hermit
    clawsweeper:needs-live-repro
    clawsweeper:no-new-fix-pr
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    on Jun 30, 2026
  3. updated Priority, Target date 2026-07-10 and Start date 2026-07-03 on Jul 10, 2026
  4. 27 remaining items

  5. added
    clawsweeper:needs-info
    issue-rating: 🐚 platinum hermit
    clawsweeper:needs-live-repro
    issue-rating: 🦞 diamond lobster
    clawsweeper:source-repro
    and removed
    issue-rating: 🦐 gold shrimp
    clawsweeper:needs-info
    issue-rating: 🐚 platinum hermit
    clawsweeper:needs-live-repro
    on Aug 9, 2026
  6. github-actions commented on Sep 18, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale due to inactivity.
    Please add updated OpenClaw Windows details or it will be closed.

  7. github-actions commented on Sep 25, 2026

    @github-actions
    Contributor

    Closing due to inactivity.
    If this still affects OpenClaw Windows, open a new issue with the current version, logs, and fresh reproduction details.

  8. locked as resolved and limited conversation to collaborators on Sep 27, 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:source-reproimpact:ux-frictionissue-rating: 🦞 diamond lobsterstale

    Type

    No type

    Fields

    Priority

    Low

    Start date

    Jul 3, 2026

    Target date

    Jul 3, 2026

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions