[Bug] Workspace remove confirmation shows `{name}` instead of the repo's name

Open
#6,315 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@jgt87 is already working on this.

Since Nov 25, 2026.

  • #6316 by @jgt87 — open

Assessment

This issue has not been assessed yet.

Description

Describe the Bug

On the workspace overview, removing a repo opens a confirmation that shows the placeholder instead of the repo's name:

Remove {name} from .repowise-workspace.yaml?

The dialog never says which repo is about to be removed, which matters on a page that lists several of them.

Steps to Reproduce

  1. Run repowise serve on a workspace with at least one repo, with the UI in English.
  2. Open the workspace overview.
  3. Click Remove on any repo.
  4. Read the browser confirmation.

Expected Behavior

Remove 'my-repo' from .repowise-workspace.yaml?, with the repo's name (or its alias when it has no name).

Actual Behavior

Remove {name} from .repowise-workspace.yaml? for every repo. The quotes are gone and {name} is printed as text.

Cause

The English message wraps the argument in ASCII apostrophes, packages/web/messages/en.json:933:

"removeConfirm": "Remove '{name}' from .repowise-workspace.yaml?",

The catalog is formatted by next-intl as ICU MessageFormat, where an apostrophe directly before { starts a quoted literal. So '{name}' is read as the literal text {name}: the apostrophes are consumed and the argument is never substituted. That matches the output exactly, including the missing quotes.

The caller passes the value correctly, packages/web/src/app/workspace/sync-buttons.tsx:129:

!window.confirm(t("removeConfirm", { name: repoName || alias }))

zh-CN.json is not affected, because it uses 「{name}」. '{name}' on this line is the only place in packages/web/messages/*.json where an apostrophe sits directly against a placeholder.

The string has been this way since the i18n foundation landed in #3129.

Possible Fix

Either of these keeps the quotes and substitutes the name:

  • typographic quotes: "Remove “{name}” from .repowise-workspace.yaml?"
  • doubled apostrophes, the ICU escape: "Remove ''{name}'' from .repowise-workspace.yaml?"

A catalog gate that rejects '{ in a message would stop the same mistake from coming back in a later string. I can open a PR for this if that is useful.

Environment

  • OS: Windows 11
  • Python version: 3.11.15
  • Repowise version: 0.61.0 (the line is unchanged on main at 9fd8d9b8b, after v0.62.0)
  • Installation method: pipx
Dominant language
Python
Stars
7.1k
Forks
756
Avg merge
21h 5m
Merged PRs (30d)
797

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from repowise-dev/repowise

All issues in repowise-dev/repowise

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.