Skip to content

fix(gateway): write update notification to session transcript (#27846)#27884

Closed
zccyman wants to merge 1 commit into
NousResearch:mainfrom
atyou2happy:fix/27846-update-notification-transcript
Closed

fix(gateway): write update notification to session transcript (#27846)#27884
zccyman wants to merge 1 commit into
NousResearch:mainfrom
atyou2happy:fix/27846-update-notification-transcript

Conversation

@zccyman

@zccyman zccyman commented May 18, 2026

Copy link
Copy Markdown
Contributor
  • feat(gateway): add contextual rationale to approval prompts
  • fix(gateway): write update notification to session transcript

@BoardJames-Bot

Copy link
Copy Markdown

Board James checked the branch-local Windows/ruff blocker and confirmed the minimal fix is just adding the explicit config read encoding in gateway/platforms/feishu.py:

-                        with open(_cfg_path) as _f:
+                        with open(_cfg_path, encoding="utf-8") as _f:

Local validation on the PR head plus the fix:

  • uv run python scripts/check-windows-footguns.py gateway/platforms/feishu.py → pass
  • uv run ruff check gateway/platforms/feishu.py → pass
  • uv run python scripts/check-windows-footguns.py --diff origin/main → pass (11 files scanned)

I couldn't push directly to atyou2happy:fix/27846-update-notification-transcript with the available bot token (403 Permission denied), so I pushed the verified one-commit fix here for maintainers/the author to cherry-pick or apply: BoardJames-Bot@a1a3857

When the gateway restarts after 'hermes update', _send_update_notification
sends a standalone adapter.send() that lands outside the conversation history.
The agent then cannot see that an update already occurred, causing it to repeat
upgrade prompts and lose context of the update outcome.

The fix writes the notification as a system message into the session transcript
before sending, so the agent retains full context of the update outcome.

Fixes NousResearch#27846.
@zccyman zccyman force-pushed the fix/27846-update-notification-transcript branch from 1ed58f9 to 61478a3 Compare May 18, 2026 09:07
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery platform/discord Discord bot adapter platform/telegram Telegram bot adapter platform/slack Slack app adapter platform/feishu Feishu / Lark adapter tool/delegate Subagent delegation labels May 18, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This PR substantially duplicates #27833 (contextual rationale for approval prompts) — 9 of 14 files are identical. Additionally, it includes committed junk files (.dev-workflow/code-graph.db, .dev-workflow/experiences.jsonl, analyzed_issues.json) that should not be in the repo.

The unique parts (update notification transcript fix for #27846 and tools/delegate_tool.py change) should be split into a separate PR. Recommend closing in favor of #27833 for the approval rationale feature.

@zccyman

zccyman commented May 18, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favor of #27906 (clean rebuild containing only the #27846 update notification fix) and #27833 (contextual rationale for approval prompts).

Per alt-glitch's review, this PR was correctly flagged as duplicating #27833 — 7 of 10 files overlapped with the contextual rationale feature. The unique #27846 portion (update notification → session transcript) has been extracted into a clean branch from origin/main at PR #27906.

Apologies for the branch management blunder — the two unrelated fixes should never have been on the same branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P3 Low — cosmetic, nice to have platform/discord Discord bot adapter platform/feishu Feishu / Lark adapter platform/slack Slack app adapter platform/telegram Telegram bot adapter tool/delegate Subagent delegation type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants