You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(chat): hide IRC deliveries an older gjc wrote without attribution - #1794
Part of #1541 (items 1 and 2; item 3 is an open product question and stays).
Item 1. Chat showed gjc's internal IRC deliveries between panes as user notices when the record carried no attribution. #1535 hid irc:incoming, irc:autoreply and irc:relay custom messages only when attribution is "agent", so a gjc build older than that field still showed them.
The evidence for the new rule comes from the installed gjc 0.18.12 binary:
Every record of these three types is written with attribution: "agent", and none with "user".
gjc's own IRC reader takes every record of these types as an IRC delivery, whatever its attribution. It already keeps a gjc:irc:legacy-observation:v1 path for older records.
piNotice (server/transcript-records.ts) now drops such a record when attribution is "agent" or missing. A record credited to the user still shows, as #1535's test requires. So does an ordinary notice whose text only quotes IRC.
Item 2. The comment no longer says these records are gjc's alone. It states what was checked: gjc 0.18.12 and omp 18.8.7 write them with attribution: "agent", and the same rule applies to every agent that shares the parser.
Design precedent: none in the UI; this is a transcript-parsing fix. It follows gjc's own reading of these records, as #1535 did for the attributed ones.
Reviewing files that changed from the base of the PR and between ddb098b and 6104da3.
📒 Files selected for processing: 3
changelog.d/gjc-irc-legacy-records.md
server/conversation.test.ts
server/transcript-records.ts
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.
📝 Summary
Summary by CodeRabbit
Bug Fixes
Chat no longer displays unattributed internal IRC deliveries as notices. User-attributed IRC records continue to appear.
The transcript filter now omits listed IRC delivery records when attribution is absent, as well as when it is "agent". A regression test covers legacy records, and a changelog entry describes the change.
Changes: IRC delivery filtering
Layer / File(s)
Summary
Filter and validate legacy IRC delivery records server/transcript-records.ts, server/conversation.test.ts, changelog.d/gjc-irc-legacy-records.md
The filter excludes listed IRC message types when attribution is "agent" or absent. The test checks that parsing retains the user prompt and assistant answer while omitting those records. The changelog describes the handling of legacy records.
devswha/herdr-web-ui issue 1541 describes legacy IRC records without attribution rendering as user notices. This change filters those records while preserving user-attributed records.
Suggested reviewers:yoonwoo-ha
Merge Risk:⚪ Minimal · up to 6104d
The change safely hides legacy internal IRC deliveries while retaining user-visible records.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title clearly and concisely describes the main change: hiding IRC deliveries written without attribution.
Description check
The description includes both required sections, explains the problem and resulting behavior, and documents validation results with relevant test coverage.
Docstring Coverage
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (1 skipped: 1 …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches
📝 Generate docstrings
Commit to this branch
Create a new PR
🧪 Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Merge pass. A gate reviewer on a different model from the author's reviewed this transcript-parsing fix and found nothing blocking.
Tests: all 131 conversation.test.ts tests and the typecheck pass. The new case fails on main, with the three unwanted notice turns.
Matching: a further 35-case check confirms the match is on the exact type. User-attributed notices and unrelated notices still show.
Producers: gjc 0.18.12 writes all three types with attribution: "agent" and treats them as IRC deliveries whatever their attribution. In the installed pi (Senpi), the generic writer omits attribution, but nothing there writes these IRC types.
Nit for a follow-up: in omp 18.8.7, the reviewer found writers for irc:incoming and irc:relay but only reader references for irc:autoreply. The new comment says "each" of the three types, which says more than that evidence shows.
All required checks are green and no review thread is open.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Part of #1541 (items 1 and 2; item 3 is an open product question and stays).
Item 1. Chat showed gjc's internal IRC deliveries between panes as user notices when the record carried no
attribution. #1535 hidirc:incoming,irc:autoreplyandirc:relaycustom messages only whenattributionis"agent", so a gjc build older than that field still showed them.The evidence for the new rule comes from the installed gjc 0.18.12 binary:
attribution: "agent", and none with"user".gjc:irc:legacy-observation:v1path for older records.piNotice(server/transcript-records.ts) now drops such a record whenattributionis"agent"or missing. A record credited to the user still shows, as #1535's test requires. So does an ordinary notice whose text only quotes IRC.Item 2. The comment no longer says these records are gjc's alone. It states what was checked: gjc 0.18.12 and omp 18.8.7 write them with
attribution: "agent", and the same rule applies to every agent that shares the parser.Design precedent: none in the UI; this is a transcript-parsing fix. It follows gjc's own reading of these records, as #1535 did for the attributed ones.
Validation
server/conversation.test.ts: "hides IRC deliveries a gjc build older than their attribution wrote (GJC IRC notices: records without attribution still show (#1535 follow-ups) #1541)". It covers the three types without attribution, between a user message and an answer.conversation.test.ts.bun run check fastpasses: workflow syntax, generated types and themes, typecheck, build, and 6299 unit tests with 0 failures.