Skip to content

Conversation

@kn0ll
Copy link
Contributor

@kn0ll kn0ll commented Dec 30, 2025

As is apparent from the mcp.md transcript, the MCP is returning duplicate responses when they are successful.

This can be transparent to the user for but:

  1. It will increase the number of tokens
  2. Larger contexts will get truncated
  3. The AI gets confused about "duplicate code"

The bug is that the output was being appended once, then again in a failure handling branch.

I assume the diff is small enough that the mcp.md transcript is sufficient for testing.

notify was appending to outputVar twice - once always, once in the
else branch. Simplified to a single append with  for errors.
@aryairani
Copy link
Contributor

@kn0ll Whoops, thanks.
Also: Could you add yourself to CONTRIBUTORS.markdown to acknowledge Unison's MIT license?

@kn0ll
Copy link
Contributor Author

kn0ll commented Jan 2, 2026

@aryairani yes, perfect, thank you!

@aryairani aryairani merged commit ea80f87 into unisonweb:trunk Jan 2, 2026
17 checks passed
@aryairani aryairani mentioned this pull request Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants