Skip to content

fix(chat): hide IRC deliveries an older gjc wrote without attribution - #1794

Merged
devswha merged 1 commit into
mainfrom
fix/gjc-irc-legacy-records
Oct 24, 2026
Merged

devswha merged 1 commit into
mainfrom
fix/gjc-irc-legacy-records

Conversation

@devswha

@devswha devswha commented Oct 24, 2026

Copy link
Copy Markdown
Owner

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 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.

Validation

  • New case in 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.
    • Before the change, all three rendered as notice turns.
    • After it, only the user message and the answer remain.
  • fix(chat): hide internal GJC IRC coordination notices #1535's cases (agent-attributed hidden; user-attributed and quoted text kept) still pass, 131 tests in conversation.test.ts.
  • bun run check fast passes: workflow syntax, generated types and themes, typecheck, build, and 6299 unit tests with 0 failures.
  • No open PR touches these files.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
📥 Commits

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.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Low

Possibly related issues

  • 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: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: hiding IRC deliveries written without attribution.
Description check Passed The description includes both required sections, explains the problem and resulting behavior, and documents validation results with relevant test coverage.
Docstring Coverage Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devswha

devswha commented Oct 24, 2026

Copy link
Copy Markdown
Owner Author

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.

@devswha
devswha merged commit a2ef2a5 into main Oct 24, 2026
17 checks passed
@devswha
devswha deleted the fix/gjc-irc-legacy-records branch October 24, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant