Repository navigation
fix(web): archive warning no longer doubles the period after an agent name - #707
Conversation
… name Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Sentence-ending punctuation apps/web/src/j5/a2a/ArchiveWarningContent.tsx, apps/web/src/j5/a2a/ArchiveWarningContent.test.ts |
The exported sentenceEnd helper returns no punctuation when the trimmed input ends with ., !, ?, or …. The placement sentence uses the helper for the final participant’s name. Tests cover plain names and names with existing punctuation. |
Priority:
Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Bug fix
Merge Risk: 
Minimal · up to 8c2fb
-
The archive warning change is ready to merge with no identified current-head risk.
Pre-merge checks: 
4
-
Full details: Title check
-
Explanation
The title names the actual fix: the archive warning no longer adds a second period after an agent name that already ends a sentence. It matches the changeset, which adds a sentenceEnd helper in ArchiveWarningContent.tsx and its unit test. It uses the conventional commit form and fits in one sentence, though it is a little long at 74 characters.
Full details: Description check
-
Explanation
The description follows the template. It has Problem, What changed, UI changes, Live testing, Upstream impact, and Checklist sections. The Problem section explains the bug and the affected cases, and it references part of
#297instead of using a 'Closes' link. The What changed section explains the helper and its scope. The UI section has before/after images, and the Live testing section gives the verdict, the tested commit, and what was not exercised. The Upstream impact section is missing. The template says to delete it only when the PR touches only J5-owned paths, and the author did not state that explicitly; the checklist notes that no upstream-owned files were touched, which partly covers it. The 'Closes#123' tracking link is also not used (it says 'Part of#297'), which is acceptable since the issue is only partly addressed.Resolution
Optional: state in the Upstream impact section (or delete it with a note) that only J5-owned paths are touched, and confirm that
#297is a partial reference rather than a closing reference.
-
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
Comment @coderabbitai help to get the list of available commands.
Problem
Part of #297. The archive warning lists the agents that keep running under the agent being archived, then adds a fixed ".". When the last name already ends a sentence, the line reads "…then stop..". That happens when a Peer Agent without a title is named after its whole brief, or when a name is cut off with "…" or "...".
What changed
The period after that list is now added only when the last name doesn't already end in
.,!,?or…. The rest of the sentence is unchanged. The check is a small helper inArchiveWarningContent.tsxwith its own unit test.That list is the only place in the archive dialog where a name is followed by a fixed period. Seat names and open-ask counterparties are shown in rows with no punctuation after them. Elsewhere in
apps/web/src/j5, the period after a name is only added after names a person picks (environment labels, server and person names), not after names that come from an agent's brief, so I left those alone.UI changes
Captured at 1280x800 in the light theme. Both pairs come from one test home, opened by the base build and then by the head build (
--base origin/j5/main, thenupgrade). The change has no loading, error or empty state. The dialog's "couldn't check" states don't list names.Live testing
Pass at 8c2fb70, which is the PR head. A Peer Agent tester (GPT-6-Astra) ran it on an isolated test server, following the
j5-live-testskill.!,?or…. The unit test covers them.Checklist
FORK.md(case text and file-table row) in this PR (none touched)docs/j5/product/upstream.md(not applicable)AGENTS.md). Every archive entry point goes through the sameformatArchiveWarningcontent. Mobile has no archive warning dialog. No contracts or providers are involved.docs/j5/product/and user docs rewritten where this changes them (no change needed)Built by Claude Opus 5.5 in Claude Code (J5 Code).
🤖 Generated with Claude Code