Skip to content

feat(identity): prefix generated nicks by platform - #540

Merged
joelteply merged 1 commit into
canaryfrom
codex/platform-prefixed-default-nicks
May 6, 2026
Merged

joelteply merged 1 commit into
canaryfrom
codex/platform-prefixed-default-nicks

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Summary

  • prefix autogenerated/default nicks with a friendly 3-letter platform kind (mac-, win-, ubu-, etc.)
  • keep explicit AIRC_NAME, saved config names, and user airc nick overrides unchanged
  • use win for Windows/Git Bash and WSL-on-Windows, mac for macOS, and the first three letters of Linux distro ID otherwise
  • update README identity examples and scope test coverage

Validation

  • bash -n airc test/integration.sh
  • ./test/integration.sh scope
  • manual empty-scope spot check: AIRC_PLATFORM_KIND=mac|windows|ubuntu airc debug-name, plus AIRC_NAME=custom airc debug-name

Copilot AI review requested due to automatic review settings May 6, 2026 18:55
@joelteply
joelteply merged commit 5dbfab0 into canary May 6, 2026
8 checks passed
@joelteply
joelteply deleted the codex/platform-prefixed-default-nicks branch May 6, 2026 18:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a platform-derived prefix to autogenerated/default identity nicks so that otherwise-identical scope-derived names are easier to distinguish across machines/OSes, while preserving explicit user-configured names.

Changes:

  • Updated default nick derivation to emit <platform>-<basename>-<4-char-hash> (with mac/win/3-letter distro IDs).
  • Extended the scope integration scenario to assert the new prefix behavior and to compare AIRC_HOME overrides using canonicalized paths.
  • Updated README identity examples to reflect the new default nick format.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
airc Adds platform_nick_prefix() and prepends it to derive_name() output; adjusts basename cap to account for the new prefix.
test/integration.sh Updates scope scenario expectations for canonical AIRC_HOME paths and validates the new ubu- prefix behavior under AIRC_PLATFORM_KIND.
README.md Refreshes identity/nick documentation and examples to match the new derived format.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants