Skip to content

Fix/2148#332

Merged
conradmugabe merged 5 commits into
mainfrom
fix/2148
Jul 22, 2026
Merged

Fix/2148#332
conradmugabe merged 5 commits into
mainfrom
fix/2148

Conversation

@conradmugabe

Copy link
Copy Markdown
Contributor

Checklist

  • Tests were added/updated according to the feature/bugfix/change made
  • Version was rolled according to semver requirements
  • API endpoints openapi schema was updated if applicable

Changes

conradmugabe and others added 4 commits July 14, 2026 00:19
The pre-commit hook runs `prettier --write .` across the whole repo and
`git add -u`, so pre-existing formatting drift on main (CHANGELOG bullet
style, a missing trailing newline in an e2e spec) would otherwise be
swept into an unrelated fix commit. Isolate it here so the fix and test
commits stay focused.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
In embed mode the current username arrives as an empty string before
hydration, and the proactive-greeting EOS handler fired the lazy
guided-prompts trigger with it verbatim. That produced a malformed URL
with an empty path segment (/users//sessions/) and a 404. Fall back to
'anonymous' when username is falsy, matching the other guided-prompts
call sites, so the path segment is always valid.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Assert the proactive-greeting EOS handler dispatches guided-prompts with
userId 'anonymous' when the username is an empty string (embed mode), and
passes a real username through unchanged. Guards against regressing the
malformed /users//sessions/ URL.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@conradmugabe
conradmugabe requested a review from sonegillis1 July 13, 2026 22:41
@conradmugabe conradmugabe self-assigned this Jul 13, 2026
@conradmugabe
conradmugabe requested a review from mamigot as a code owner July 13, 2026 22:41
@mamigot

mamigot commented Jul 13, 2026

Copy link
Copy Markdown
Member

Claude finished @conradmugabe's task —— View job


E2E Coverage Review

  • Dismiss stale REQUEST_CHANGES reviews (none found)
  • Identify changed files (hooks/use-welcome-message.ts, hooks/__tests__/use-welcome-message.test.ts — no new page.tsx routes)
  • Run mechanical coverage check (passed, 545 checkpoints unchanged, 25/25 files mapped)
  • Read current coverage state (all good)
  • Apply decision logic — CASE E: No new app routes, coverage intact → Approved

Summary

This PR only modifies hook files (no new app/**/page.tsx routes). The mechanical coverage check passed with exit code 0 — 545 checkpoints, 100% route coverage. PR approved. ✅

@mamigot mamigot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ E2E Coverage — No Issues

No new app routes were introduced. All existing coverage is intact.

@conradmugabe conradmugabe added the run-tests Trigger PR validation pipeline label Jul 13, 2026
@mamigot

mamigot commented Jul 22, 2026

Copy link
Copy Markdown
Member

Claude finished @conradmugabe's task —— View job


E2E Coverage Review

  • Dismiss stale REQUEST_CHANGES reviews (none found)
  • Identify changed files (hooks/use-welcome-message.ts, hooks/__tests__/use-welcome-message.test.ts — no new page.tsx routes)
  • Run mechanical coverage check (passed, 562 checkpoints unchanged, 25/25 files mapped)
  • Read current coverage state (all good)
  • Apply decision logic — CASE E: No new app routes, coverage intact → Approved

Summary

This PR only modifies hook files (no new app/**/page.tsx routes). The mechanical coverage check passed with exit code 0 — 562 checkpoints, 100% route coverage. PR approved. ✅

@mamigot mamigot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ E2E Coverage — No Issues

No new app routes were introduced. All existing coverage is intact.

@conradmugabe
conradmugabe merged commit 6282e34 into main Jul 22, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-tests Trigger PR validation pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants