Skip to content

Commit 7ae2ff6

Browse files
fix(link): keep stripping bidi controls from the same-name prompt
inertWorkspaceName keeps the name on one line but leaves bidi overrides, which stripControlChars removes for every other terminal-facing workspace name. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_0172qrhMa5TQgETASi5hxMqD
1 parent ce6be7c commit 7ae2ff6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/opencode/src/cli/cmd

‎packages/opencode/src/cli/cmd/link.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ export const LinkCommand = cmd({
342342
// Both create paths start from the project's name, so both confirm a namesake.
343343
if ((pick === SET_UP_IN_BROWSER_SENTINEL || pick === CREATE_NEW_SENTINEL) && namesake) {
344344
const again = await prompts.confirm({
345-
message: `A workspace named "${inertWorkspaceName(namesake.name)}" already exists. Create another one with the same name?`,
345+
message: `A workspace named "${stripControlChars(inertWorkspaceName(namesake.name))}" already exists. Create another one with the same name?`,
346346
initialValue: false,
347347
})
348348
if (prompts.isCancel(again) || !again) {

0 commit comments

Comments
 (0)