Skip to content

Commit f5e251d

Browse files
committed
feat: permission mode info tooltip on hover
Show a brief description of the current permission mode (Plan/Edit/Full Auto) when hovering the permission bar. Also sets a native title tooltip with the same text.
1 parent b5c1b1b commit f5e251d

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

src/nls/root/strings.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,6 +1929,9 @@ define({
19291929
"AI_CHAT_MODE_PLAN": "Plan Mode",
19301930
"AI_CHAT_MODE_EDIT": "Edit Mode",
19311931
"AI_CHAT_MODE_FULL_AUTO": "Full Auto",
1932+
"AI_CHAT_MODE_INFO_PLAN": "AI will propose a plan before making changes",
1933+
"AI_CHAT_MODE_INFO_EDIT": "AI can edit files. Shell commands need approval",
1934+
"AI_CHAT_MODE_INFO_FULL_AUTO": "AI can edit files and run commands without approval",
19321935
"AI_CHAT_BASH_CONFIRM_TITLE": "Allow command?",
19331936
"AI_CHAT_BASH_ALLOW": "Allow",
19341937
"AI_CHAT_BASH_DENY": "Deny",

src/styles/Extn-AIChatPanel.less

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,6 +1747,22 @@
17471747
color: @project-panel-text-2;
17481748
line-height: 1;
17491749
}
1750+
1751+
.ai-permission-info {
1752+
display: none;
1753+
margin-left: auto;
1754+
font-size: 11px;
1755+
line-height: 1;
1756+
pointer-events: none;
1757+
white-space: nowrap;
1758+
overflow: hidden;
1759+
text-overflow: ellipsis;
1760+
color: @project-panel-text-2;
1761+
}
1762+
1763+
&:hover .ai-permission-info {
1764+
display: inline;
1765+
}
17501766
}
17511767

17521768
.ai-chat-context-bar {

0 commit comments

Comments
 (0)