Skip to content

fix(vscode): move prompt rail away from session content - #12883

Merged
marius-kilocode merged 1 commit into
mainfrom
reposition-prompt-rail
Aug 5, 2026
Merged

fix(vscode): move prompt rail away from session content#12883
marius-kilocode merged 1 commit into
mainfrom
reposition-prompt-rail

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

The prompt navigator rail currently tracks the centered readable lane. On wide sessions, that places its hover targets beside the content the pointer naturally crosses, making the navigator easy to open accidentally. In Agent Manager, the same placement also sits close to the sidebar splitter.

This change anchors the rail to the chat panel edge with an 8px splitter-safe gutter, suppresses hover activation while a button is held so resize and text-selection drags cannot open the navigator, and uses compositor-friendly tick transforms while preserving the existing rendered sizes.

Narrow sidebar prompt rail positioned in the left gutter

Wide Agent Manager prompt rail and navigator card

@kilo-code-bot

kilo-code-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

lgtm — the buttons !== 0 guard targets the real event path (the Agent Manager resize handle uses document-level mousemove without pointer capture, so ticks do receive mouseenter mid-drag), and the transform-based tick sizing was verified state-by-state against the previous pixel sizes (rest 9×1.5px, active 13×1.5px, hover/focus 16×2px) with the overflow-tick specificity interactions intact. Changeset is present and user-facing; existing PromptRail Storybook stories cover the new positioning.

Files Reviewed (3 files)
  • .changeset/prompt-rail-panel-edge.md
  • packages/kilo-vscode/webview-ui/src/components/chat/PromptRail.tsx
  • packages/kilo-vscode/webview-ui/src/styles/prompt-rail.css

Reviewed by kimi-k3 · Input: 77.3K · Output: 16.9K · Cached: 1M

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit 3a840b0 into main Aug 5, 2026
24 checks passed
@marius-kilocode
marius-kilocode deleted the reposition-prompt-rail branch August 5, 2026 08:51
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
fix(vscode): move prompt rail away from session content
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