Skip to content

fix: replace unsupported prompt() with inline folder-create input - #3

Open
Jehu wants to merge 1 commit into
bdunn77:mainfrom
Jehu:fix/inline-folder-create
Open

fix: replace unsupported prompt() with inline folder-create input#3
Jehu wants to merge 1 commit into
bdunn77:mainfrom
Jehu:fix/inline-folder-create

Conversation

@Jehu

@Jehu Jehu commented Aug 5, 2026

Copy link
Copy Markdown

Problem

In the Agent Zero WebUI, window.prompt() is blocked. Clicking New Folder (or New Subfolder in the context menu) throws:

Alpine Expression Error: prompt() is not supported.
Expression: "$store.chatOrganizer.showCreateFolder(null)"

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: new creating/createValue state; showCreateFolder(parentId) opens the inline input (focuses it, expands the parent folder); new finishCreate() (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-scroll reusing the co-rename-input styling. Enter = create, Escape = cancel, blur = create.

Both entry points work: the header New Folder button and the New Subfolder context-menu item.

Verification

  • node --check passes on the store
  • no remaining prompt() usage
  • manually tested in the Agent Zero WebUI sidebar

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
Jehu force-pushed the fix/inline-folder-create branch from e4f1977 to 06c9eed Compare August 5, 2026 14:54
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.

1 participant