Skip to content

[Bug]: Kanban Dashboard task creation — workspace select reverts to "scratch" on choosing "dir" or "worktree" #24520

@daniellynchio

Description

@daniellynchio

Bug Description

In the Kanban dashboard tab, the inline create form's workspace dropdown silently reverts to scratch when selecting dir or worktree. No console errors. Backend receives workspace_kind: "scratch" regardless of user selection.

Root cause:
dist/index.js line ~2251 uses a raw DOM-event handler for the custom Select primitive:

javascript
// BROKEN — Select component passes raw value string, not an event
onChange: function (e) { setWorkspaceKind(e.target.value); },


The codebase already has a safe wrapper pattern elsewhere:

javascript
// CORRECT — handles both raw-value and event-object dispatch
onChange: function (e) {
    const v = e && e.target ? e.target.value : e;
    setter(v == null ? "" : v);
}


The inline create form was compiled without that guard.

Backend is fine: CLI hermes kanban create --workspace worktree and --workspace dir:/path work correctly, as does the kanban_create tool. This is purely a compiled-dashboard frontend bug.

Patch (verified on local install):
javascript
// dist/index.js, InlineCreate component workspace Select
onChange: function(e){const v=e&&e.target?e.target.value:e;setWorkspaceKind(v==null?"":v);},


Suggested fix: Rebuild the dashboard bundle from source, ensuring the inline create workspace select uses the same safe event normalizer as the rest of the component tree.

Environment:
- Hermes agent latest (macOS, May 2026)
- Chromium-based browser, reproduced after hard refresh
- Gateway running, profiles default and engineer present

Steps to Reproduce

  1. Open dashboard → Kanban tab → click + on any column
  2. Click workspace select (shows scratch, worktree, dir)
  3. Select worktree or dir
  4. Select closes, value stays scratch

Expected Behavior

Select control selects the chosen item

Actual Behavior

Reverts back to 'Scratch'

Affected Component

Other

Messaging Platform (if gateway-related)

No response

Debug Report

Not including for privacy.

Operating System

macOS Tahoe 26.4.1

Python Version

3.11.15

Hermes Version

0.13.0 (2026.5.7) [dd0923b]

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/pluginsPlugin system and bundled pluginstype/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions