-
Notifications
You must be signed in to change notification settings - Fork 0
Mirror: fix: prevent Create New Mode form fields from resetting (#5826) #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "kilo-code": patch | ||
| --- | ||
|
|
||
| Fix Create New Mode form fields resetting while typing due to VS Code web component re-renders, and fix blank screen when navigating to modes tab from marketplace |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1568,14 +1568,13 @@ const ModesView = ({ hideHeader = false }: { hideHeader?: boolean }) => { | |
| }}> | ||
| {t("prompts:createModeDialog.roleDefinition.description")} | ||
| </div> | ||
| <VSCodeTextArea | ||
| resize="vertical" | ||
| <textarea | ||
| value={newModeRoleDefinition} | ||
| onChange={(e) => { | ||
| setNewModeRoleDefinition((e.target as HTMLTextAreaElement).value) | ||
| setNewModeRoleDefinition(e.target.value) | ||
| }} | ||
| rows={4} | ||
| className="w-full" | ||
| className="w-full resize-y bg-vscode-input-background text-vscode-input-foreground border border-vscode-input-border rounded p-2 font-[var(--vscode-font-family)] text-[13px]" | ||
| /> | ||
|
Comment on lines
+1571
to
1578
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While replacing To improve maintainability and consistency, consider creating a reusable If the existing
Comment on lines
+1571
to
1578
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1. Modesview edits lack marker Edits in webview-ui/src/components/modes/ModesView.tsx were made without adding kilocode_change markers around the modified blocks, increasing upstream sync merge-conflict risk. Upstream-shared code changes under webview-ui/ must be explicitly marked. Agent Prompt
|
||
| {roleDefinitionError && ( | ||
| <div className="text-xs text-vscode-errorForeground mt-1"> | ||
|
|
@@ -1589,10 +1588,11 @@ const ModesView = ({ hideHeader = false }: { hideHeader?: boolean }) => { | |
| <div className="text-[13px] text-vscode-descriptionForeground mb-2"> | ||
| {t("prompts:createModeDialog.description.description")} | ||
| </div> | ||
| <VSCodeTextField | ||
| <Input | ||
| type="text" | ||
| value={newModeDescription} | ||
| onChange={(e) => { | ||
| setNewModeDescription((e.target as HTMLInputElement).value) | ||
| setNewModeDescription(e.target.value) | ||
| }} | ||
| className="w-full" | ||
| /> | ||
|
|
@@ -1606,14 +1606,13 @@ const ModesView = ({ hideHeader = false }: { hideHeader?: boolean }) => { | |
| <div className="text-[13px] text-vscode-descriptionForeground mb-2"> | ||
| {t("prompts:createModeDialog.whenToUse.description")} | ||
| </div> | ||
| <VSCodeTextArea | ||
| resize="vertical" | ||
| <textarea | ||
| value={newModeWhenToUse} | ||
| onChange={(e) => { | ||
| setNewModeWhenToUse((e.target as HTMLTextAreaElement).value) | ||
| setNewModeWhenToUse(e.target.value) | ||
| }} | ||
| rows={3} | ||
| className="w-full" | ||
| className="w-full resize-y bg-vscode-input-background text-vscode-input-foreground border border-vscode-input-border rounded p-2 font-[var(--vscode-font-family)] text-[13px]" | ||
| /> | ||
| </div> | ||
| <div className="mb-4"> | ||
|
|
@@ -1653,14 +1652,13 @@ const ModesView = ({ hideHeader = false }: { hideHeader?: boolean }) => { | |
| <div className="text-[13px] text-vscode-descriptionForeground mb-2"> | ||
| {t("prompts:createModeDialog.customInstructions.description")} | ||
| </div> | ||
| <VSCodeTextArea | ||
| resize="vertical" | ||
| <textarea | ||
| value={newModeCustomInstructions} | ||
| onChange={(e) => { | ||
| setNewModeCustomInstructions((e.target as HTMLTextAreaElement).value) | ||
| setNewModeCustomInstructions(e.target.value) | ||
| }} | ||
| rows={4} | ||
| className="w-full" | ||
| className="w-full resize-y bg-vscode-input-background text-vscode-input-foreground border border-vscode-input-border rounded p-2 font-[var(--vscode-font-family)] text-[13px]" | ||
| /> | ||
| </div> | ||
| </div> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. Modes redirect drops section
🐞 Bug✓ CorrectnessAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools