fix: replace unsupported prompt() with inline folder-create input - #3
Open
Jehu wants to merge 1 commit into
Open
fix: replace unsupported prompt() with inline folder-create input#3Jehu wants to merge 1 commit into
Jehu wants to merge 1 commit into
Conversation
window.prompt() is blocked in the Agent Zero WebUI, so clicking New Folder threw "prompt() is not supported". Folder creation now uses an inline input row mirroring the existing rename flow (Enter=create, Escape=cancel, blur=create). Works for both the header New Folder button and the New Subfolder context-menu item.
Jehu
force-pushed
the
fix/inline-folder-create
branch
from
August 5, 2026 14:54
e4f1977 to
06c9eed
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In the Agent Zero WebUI,
window.prompt()is blocked. Clicking New Folder (or New Subfolder in the context menu) throws:so folders cannot be created at all.
Fix
Folder creation now uses an inline input row that mirrors the existing inline rename flow (
editingId/editValue):webui/chat_organizer_store.js: newcreating/createValuestate;showCreateFolder(parentId)opens the inline input (focuses it, expands the parent folder); newfinishCreate()(guarded against Enter+blur double-fire),cancelCreate(),isCreating().extensions/webui/sidebar-chats-list-start/chat_organizer.html: inline create row at the top of.co-tree-scrollreusing theco-rename-inputstyling. Enter = create, Escape = cancel, blur = create.Both entry points work: the header New Folder button and the New Subfolder context-menu item.
Verification
node --checkpasses on the storeprompt()usage