Skip to content

feat: allow @ in the body of identity and profile names - #15

Merged
Mearman merged 1 commit into
mainfrom
allow-at-in-identity-name-body
Sep 11, 2026
Merged

Mearman merged 1 commit into
mainfrom
allow-at-in-identity-name-body

Conversation

@Mearman

@Mearman Mearman commented Sep 11, 2026

Copy link
Copy Markdown
Member

An email address now names its own identity directly: claude-use @joseph.mearman@exadev.io works end to end, because the @<name> selector already splits its token at the first @ only.

  • IdentitySchema.name allows @ in the body; the first character stays strictly alphanumeric, so a leading @ is still rejected and the selector's first-@ split stays unambiguous.
  • PROFILE_NAME_RE (the profile wizard's validator) widens in lockstep rather than by coincidence: runIdentityWizard offers the identity's own name as the default configuration-profile name, so an email-shaped identity would otherwise suggest a profile name its own validator rejects.
  • InvalidIdentityNameError's message and the generated schema/Identity.schema.json pattern update with it.

Stacked on #14 (the wizard pre-validation that makes an invalid name fail before any prompt); its @exadev test example pins the leading-@ boundary this change leaves in place.

@Mearman
Mearman marked this pull request as ready for review September 11, 2026 07:58
@Mearman

Mearman commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

The one red check, audit, is the same advisory-database drift from main's lockfile (cleared on main by #16, just merged) — this branch carries no dependency changes of its own. It will be rebased onto main after #14 lands, then merged.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-11T08:02:59.221003Z 7be15f3 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Mearman
Mearman force-pushed the validate-identity-name-before-wizard branch from e418ca4 to d4b1ff6 Compare September 11, 2026 07:58
Base automatically changed from validate-identity-name-before-wizard to main September 11, 2026 08:07
An email address now names its own identity directly:
claude-use @joseph.mearman@exadev.io works end to end, because the
@<name> selector already splits its token at the first @ only. The
first character stays strictly alphanumeric, so a leading @ is still
rejected and that first-@ split stays unambiguous.

PROFILE_NAME_RE widens in lockstep rather than by coincidence: the
identity wizard offers the identity's own name as the default
configuration-profile name, so an email-shaped identity would
otherwise suggest a profile name its own validator rejects. The
InvalidIdentityNameError message and the generated
schema/Identity.schema.json pattern update with it.
@Mearman
Mearman force-pushed the allow-at-in-identity-name-body branch from 7be15f3 to 03a6d06 Compare September 11, 2026 08:10
@Mearman
Mearman merged commit 838b99c into main Sep 11, 2026
5 checks passed
@Mearman
Mearman deleted the allow-at-in-identity-name-body branch September 11, 2026 08:10
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