Skip to content

fix(web): archive warning no longer doubles the period after an agent name - #707

Merged
Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/archive-dialog-period-297
Oct 25, 2026
Merged

Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/archive-dialog-period-297

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

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 in ArchiveWarningContent.tsx with 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

Before After
Archive warning for a child whose name ends in a period. before after
A plain child name still gets its period. unchanged after

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, then upgrade). 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-test skill.

  • Base (fd90c52) shows "…then stop.." for a child whose name ends in a period. Head shows "…then stop.".
  • A real Claude Haiku turn, sent through the UI on head, made a child named "Docs helper". Its line still ends with ".".
  • Cancelling the dialog leaves the thread unarchived. Nothing was archived.
  • Not exercised live: names ending in !, ? or …. The unit test covers them.
  • Only the "Always" row of the skill's coverage table applies. The change doesn't touch turns, stored state, migrations, peering or agent tools.
  • Nothing needs testing by hand.

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior (backend changes ship with focused tests)
  • UI changes: before/after screenshots above, and a video for motion or interaction (no motion involved)
  • Live testing: the section above says what ran live and what did not
  • Upstream-owned files: each one is recorded in FORK.md (case text and file-table row) in this PR (none touched)
  • Upstream product: any change to what upstream's product does has a human decision linked above and a register entry in docs/j5/product/upstream.md (not applicable)
  • Surfaces: entry points, clients, providers, contracts, reverse states, connection modes (see AGENTS.md). Every archive entry point goes through the same formatArchiveWarning content. Mobile has no archive warning dialog. No contracts or providers are involved.
  • Docs: definitions under 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

@vercel

vercel Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Oct 25, 2026 2:57am UTC

Request Review

@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Oct 25, 2026
@github-actions github-actions Bot added the size:XS 0-9 effective changed lines (test files excluded in mixed PRs). label Oct 25, 2026
Jacksondr5 added a commit that referenced this pull request Oct 25, 2026
@Jacksondr5
Jacksondr5 marked this pull request as ready for review October 25, 2026 03:02
@coderabbitai

coderabbitai Bot commented Oct 25, 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 fd90c52 and 8c2fb70.

Files selected for processing: 2
  • apps/web/src/j5/a2a/ArchiveWarningContent.test.ts
  • apps/web/src/j5/a2a/ArchiveWarningContent.tsx

Included review availability: This review used your included allowance. 1 included review remains after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

Walkthrough

The archive warning now avoids adding a period when the final participant’s name already ends with recognized sentence-ending punctuation. Tests cover the helper’s punctuation checks.

Changes: Archive warning punctuation

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: Low

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: Passed 4
Check name Status Explanation
Title check Passed 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 Archiv…
Description check Passed 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 …
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: 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 #297 instead 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 #297 is 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.

@Jacksondr5
Jacksondr5 merged commit badf0d7 into j5/main Oct 25, 2026
38 checks passed
@Jacksondr5
Jacksondr5 deleted the j5code/archive-dialog-period-297 branch October 25, 2026 03:10
Jacksondr5 added a commit that referenced this pull request Nov 23, 2026

This branch was successfully deployed

1 active deployment
Preview — 8c2fb707 Deployed Oct 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant