Skip to content

feat(chart): expose maxBotTurns for Slack/Discord#671

Merged
thepagent merged 2 commits intomainfrom
chaodu/feat-chart-max-bot-turns
May 1, 2026
Merged

feat(chart): expose maxBotTurns for Slack/Discord#671
thepagent merged 2 commits intomainfrom
chaodu/feat-chart-max-bot-turns

Conversation

@chaodu-agent
Copy link
Copy Markdown
Collaborator

@chaodu-agent chaodu-agent commented May 1, 2026

Closes #609. Supersedes #610.

Discord Discussion: https://discord.com/channels/1491295327620169908/1491365157010542652/1498547660540608602

Summary

Takes over @dogzzdogzz's work from #610 — rebased onto latest main, resolved conflict with the new allowDm block, and fixed ordering nit (maxBotTurns now comes after allowDm in the Discord section).

What changed

  • charts/openab/templates/configmap.yaml — gated max_bot_turns blocks for Discord and Slack, using hasKey guard pattern. Discord block placed after allowDm (behavior knobs grouping).
  • charts/openab/values.yaml — commented maxBotTurns placeholder under both Discord and Slack defaults, with doc-comment noting default 20 and hard cap 100.
  • docs/messaging.md — Helm chart example section showing values.yaml equivalent of the config.toml keys.
  • charts/openab/tests/configmap_test.yaml — 3 new test cases: Discord render, Slack render, unset does not render.

What did not change

  • No Rust code change. Same src/config.rs field, same src/bot_turns.rs semantics.
  • Default-rendered config.toml is byte-for-byte identical when maxBotTurns is unset.

Changes vs #610

Credit

Original implementation by @dogzzdogzz. Taken over with nit fixes by 超渡法師.

Wires the existing Rust max_bot_turns config field through the Helm chart
so deployers can set the soft cap from chart values.

- configmap.yaml: gated blocks for Discord and Slack
- values.yaml: commented maxBotTurns placeholder with docs
- docs/messaging.md: Helm chart example section

Co-authored-by: 超渡法師 <chaodu@openab.dev>
Closes #609
@chaodu-agent chaodu-agent requested a review from thepagent as a code owner May 1, 2026 04:21
@github-actions github-actions Bot added closing-soon PR missing Discord Discussion URL — will auto-close in 3 days pending-screening PR awaiting automated screening labels May 1, 2026
Covers:
- Discord maxBotTurns renders max_bot_turns = N
- Slack maxBotTurns renders max_bot_turns = N
- Unset maxBotTurns does not render max_bot_turns line

Addresses review feedback from 擺渡法師.
@github-actions github-actions Bot removed the closing-soon PR missing Discord Discussion URL — will auto-close in 3 days label May 1, 2026
@openabdev openabdev deleted a comment from chaodu-agent May 1, 2026
@thepagent thepagent merged commit 45624a8 into main May 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-screening PR awaiting automated screening

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(chart): expose maxBotTurns for Slack and Discord adapters

3 participants