Skip to content

fix(vscode): support agent manager prompt bidi - #12015

Merged
marius-kilocode merged 1 commit into
Kilo-Org:mainfrom
mjnaderi:fix/agent-manager-prompt-bidi
Jul 7, 2026
Merged

fix(vscode): support agent manager prompt bidi#12015
marius-kilocode merged 1 commit into
Kilo-Org:mainfrom
mjnaderi:fix/agent-manager-prompt-bidi

Conversation

@mjnaderi

@mjnaderi mjnaderi commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Issue

No linked issue.

Context

The main chat prompt already supports bidirectional text input. This aligns the Agent Manager “New Worktree” prompt modal with that behavior so mixed left-to-right and right-to-left content is handled consistently across prompt surfaces.

Implementation

Adds dir="auto" to the Agent Manager new worktree prompt textarea. The modal uses a native textarea without the chat prompt’s highlight overlay, so no extra overlay bidi styling is needed.

The existing prompt bidirectional unit coverage was extended to guard this modal prompt as well.

Screenshots / Video

before after
before after

How to Test

Manual/local verification

  • Manually built the extension and tested the Agent Manager “New Worktree” prompt modal with mixed direction content.
  • bun test tests/unit/prompt-input-bidirectional.test.ts
  • bun eslint webview-ui/agent-manager/NewWorktreeDialog.tsx tests/unit/prompt-input-bidirectional.test.ts
  • bun run check-types:webview

Reviewer test steps

  1. Open Agent Manager.
  2. Click “Configure New Worktree”.
  3. Enter mixed left-to-right and right-to-left text in the prompt field.
  4. Confirm the prompt direction resolves naturally based on the content, matching the main chat prompt behavior.

Blocked checks and substitute verification

  • None.

Checklist

  • Issue linked above, or exception explained
  • Tests/verification described
  • Screenshots/video included for visual changes, or marked N/A
  • Changeset considered for user-facing changes
  • I personally reviewed the diff and can explain the changes, including any AI-assisted work.

@kilo-code-bot

kilo-code-bot Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • .changeset/fix-agent-manager-prompt-bidi.md
  • packages/kilo-vscode/tests/unit/prompt-input-bidirectional.test.ts
  • packages/kilo-vscode/webview-ui/agent-manager/NewWorktreeDialog.tsx

Reviewed by claude-sonnet-5-20260630 · Input: 16 · Output: 3K · Cached: 314.9K

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit 4dc994d into Kilo-Org:main Jul 7, 2026
21 checks passed
@marius-kilocode

Copy link
Copy Markdown
Collaborator

LGTM. Much appreciated @mjnaderi !

t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
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