Skip to content

chore(channels): document apply_agent_prefix idempotency caveats#3107

Merged
houko merged 3 commits into
mainfrom
followup/channel-prefix-review
Apr 25, 2026
Merged

chore(channels): document apply_agent_prefix idempotency caveats#3107
houko merged 3 commits into
mainfrom
followup/channel-prefix-review

Conversation

@houko

@houko houko commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up review concerns from #3077 (already merged).

  • Document the idempotency caveats of apply_agent_prefix when the agent name itself contains bracket characters that look like a prefix marker, with regression tests pinning the current behaviour.

Cherry-picks: 22d4ae8

Test plan

  • Existing channel-prefix tests still pass
  • New tests cover the bracket-in-name edge cases

… bracket chars in name

Bracket/asterisk characters in agent names break the naive `starts_with`
idempotency check. Document the caveat and add a regression test that
pins the worst-case behaviors (no panic, valid UTF-8, body preserved).
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions github-actions Bot added the ready-for-review PR is ready for maintainer review label Apr 25, 2026
@github-actions github-actions Bot added area/channels Messaging channel adapters size/M 50-249 lines changed labels Apr 25, 2026
@houko
houko merged commit 1d90e8e into main Apr 25, 2026
20 checks passed
@houko
houko deleted the followup/channel-prefix-review branch April 25, 2026 12:03
@github-actions github-actions Bot removed the ready-for-review PR is ready for maintainer review label Apr 25, 2026
@houko houko mentioned this pull request Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/channels Messaging channel adapters size/M 50-249 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant