Commit 7a5c400
revert(mcp): drop SendMessage from iframe apply on_error
Reconsidered: the existing UpdateContext on the on_error chain already
pushes the failure into the agent's model context — the agent reacts on
its next turn, mirroring the on_success path's UpdateContext(content=
RESULT). Adding a SendMessage doubles up: it puts a chat-visible
"Apply failed: ..." line that the agent then has to deduplicate against
the same content arriving via UpdateContext, AND adds chat noise on the
common-rare error path.
Keep the existing rail unchanged:
- SetState/ShowToast → iframe feedback (toast for user, state for UI)
- UpdateContext → agent receives the error reason
The Bug #1 datetime fix (this PR) eliminates the load-bearing trigger
for the SRAM-session Bug #4 — naive datetimes will no longer 422
silently. If iframe-error visibility remains an issue on a different
class of failure, address it separately by investigating WHY the
existing toast / UpdateContext aren't reaching their audience rather
than layering SendMessage on top.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9574f24 commit 7a5c400
2 files changed
Lines changed: 0 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | 335 | | |
343 | 336 | | |
344 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1047 | 1047 | | |
1048 | 1048 | | |
1049 | 1049 | | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | 1050 | | |
1068 | 1051 | | |
1069 | 1052 | | |
| |||
0 commit comments