Repository navigation
fix(channels): honor supported group history limits - #129710
Conversation
Co-authored-by: ayaangazali <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 8:39 PM ET / August 26, 2026, 00:39 UTC. ClawSweeper reviewWhat this changesAdds root-level Regression provenancePossible regression — probable (reviewed change; known regression link). No predecessor PR is attributed. Merge readinessThis PR remains necessary: current main still rejects the documented root override and LINE/Mattermost still ignore it for pending inbound history. The branch uses the owning schemas and buffer owners, with no concrete correctness finding found. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherChannel configuration is validated from bundled plugin schemas before the gateway starts. The shared transcript resolver consumes root channel limits, while LINE and Mattermost also feed effective limits into their own pending inbound-history buffers before prompt construction. flowchart LR
A[Operator channel configuration] --> B[Bundled channel schemas]
B --> C[Generated configuration metadata]
C --> D[Shared transcript history resolver]
C --> E[LINE and Mattermost inbound handlers]
D --> F[Agent prompt history]
E --> G[Pending inbound context]
G --> F
Before merge
Agent review detailsSecurityNone. PR surfaceSource +16, Tests +137, Generated 0. Total +153 across 15 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the scoped schema additions and the two owner-level precedence repairs after exact-head checks complete; retain root-only support for channels whose shared transcript owner does not yet honor account scope. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible: current main’s strict schemas omit the documented key, and LINE/Mattermost pass only the global default at their pending-history boundaries. Is this the best way to solve the issue? Yes—the branch repairs validation at each plugin schema and resolves account precedence only where that channel’s actual pending-history owner can honor it. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6133ad92a062. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Co-authored-by: ayaangazali <[email protected]>
Related: #118152
What Problem This Solves
Seven group-capable channels reject their documented channel-level
historyLimitsetting. LINE and Mattermost additionally ignore valid channel/account history overrides when building their pending inbound context.Why This Change Was Made
The shared session-history owner already consumes root-level channel history settings. ClickClack, QA Channel, Tlon, Twitch, and Zalo now expose the setting only at that working channel root; their named-account schemas deliberately do not accept an option that the shared transcript owner cannot honor. Both closed Twitch configuration branches expose the root option.
LINE and Mattermost additionally support named-account settings because their actual pending-history owners consume them. Those owners now resolve account, then channel, then the existing global default without treating zero as absent. Separate transcript/compaction account parity remains tracked in #119326; this change does not claim that generic account-scoped transcript limits already work.
Buzz is deliberately excluded: its independently declared strict manifest schema does not support the setting. Existing Buzz room-level sender policies remain intact. Unrelated stale generated documentation-baseline drift is also excluded.
User Impact
Operators can use the existing documented root-level history setting on ClickClack, LINE, Mattermost, QA Channel, Tlon, Twitch, and Zalo. LINE and Mattermost pending inbound history additionally respects real channel/account overrides and an explicit zero. Existing generic transcript handling for zero is unchanged: zero disables these pending buffers, but does not mean that the generic transcript limiter removes all retained conversation history.
Evidence
node --import tsx scripts/generate-bundled-channel-config-metadata.ts --checkpasses; direct generated-metadata inspection proves the existing Buzz room sender-policy fields remain present.Original investigation and channel-owner fixes: @ayaangazali in #118152.