Skip to content

[Bug]: MCP app notes reach Claude again days later with no sign of their age, so an old note reads as news #42982

Done

Description

@danyalaytekin

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. In a Claude thread, use an MCP app whose card sets a model-context note when you act on it. Ours was a Slack draft card: pressing Send set the note "Update: The message was sent successfully. Message: …".
  2. Keep using the thread for a few days, through T3 restarts (updates) and one compaction.

Expected behavior

The agent gets the note when it changes. When T3 has to send it again, for example after a compaction, the agent can tell it's the card's earlier state and not something that just happened.

Actual behavior

The note was right the first time. The same note then came back with 13 later user messages over three days, each in an external_mcp_app_… block with nothing to show when it was set. After a compaction, the agent took it for a fresh send, until it checked Slack and found only the one message. No harm came of it, but an agent could act on it: retry, report, or follow up on something long done.

From the source, at 487a29b:

  • the Claude adapter's record of delivered notes is an in-memory Map, cleared on compaction, conversation reset and rollback (ClaudeAdapterV2.ts#L6355-L6356, #L11630, #L15401). Resending after those makes sense, since the history lost the note. Nothing persists the record, though, so as far as I can tell it also starts empty whenever the adapter starts again, such as after a server restart;
  • mcp_app_model_context stores each note's updated_at, but forProvider passes only key and text (McpAppModelContext.ts#L42-L62), so a resent note looks exactly like a new one.

Suggestion: put the note's updated_at in the block (say, "as of 2026-11-23 14:02 UTC"), so a resend reads as earlier state; and perhaps keep the delivered record with the session, so a restart doesn't resend.

Related: #38284 and #38541, which fixed notes not reaching Claude at all.

Impact

Minor bug or occasional failure

Version or commit

Desktop 0.1.12 (Beta)

Environment

macOS 27.2.1, Claude provider

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