Skip to content

orrery install: report the account and its workspace - #18

Merged
gradyzhuo merged 1 commit into
mainfrom
feat/install-shows-workspace
Jul 6, 2026
Merged

orrery install: report the account and its workspace#18
gradyzhuo merged 1 commit into
mainfrom
feat/install-shows-workspace

Conversation

@gradyzhuo

Copy link
Copy Markdown
Member

Summary

orrery install now names both the account and the workspace it's pinned to in its success message — making it clear that a shared add-on (the statusline program) lands in the workspace while the settings.json patch is per-account.

  • en/ja: Installed {id} (…) into account '{env}' in workspace '{workspace}'. …
  • zh-Hant: 已將 {id}(…)安裝到帳號「{env}」所在的 workspace「{workspace}」,…

Changes

  • New claudeWorkspaceLabel(forEnv:) (reads the account's metadata.json workspace, absent ⇒ origin), DRY'd with claudeAccountLabel via a shared claudeAccountDirPath/claudeAccountMetadata.
  • L10n.Install.success gains a workspace parameter (all 3 locales + l10n-signatures.json; codegen validates placeholder↔signature at build).
  • Scope: orrery install only (uninstall message unchanged).

Test Plan

  • swift build clean (L10n codegen accepts the new signature/placeholders).
  • swift test --filter LocalizationTests — passes, incl. new testInstallSuccessNamesAccountAndWorkspace (rendered message contains both account and workspace).

The install success message now names both the target account and the workspace
it is pinned to (e.g. 帳號「work」所在的 workspace「team」) — clarifying that
shared add-ons (the statusline program) land in the workspace while the settings
patch is per-account. Adds a claudeWorkspaceLabel helper (DRY'd with the account
label) + a workspace param to L10n.Install.success across all locales.
@gradyzhuo
gradyzhuo merged commit c96ea1b into main Jul 6, 2026
1 check passed
@gradyzhuo
gradyzhuo deleted the feat/install-shows-workspace branch July 6, 2026 07:35
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