Skip to content

Tasks: Ctrl+Enter creates duplicate tasks #3385

Closed

Description

@0xferrous

Summary

In the Tasks plugin, pressing Ctrl+Enter while focus is in the task title
field creates two identical tasks. The expected behavior is that one
Ctrl+Enter submission creates one task.

Versions and environment

  • bb 0.42.1, running from source
  • Source investigation based on origin/main at
    04f4e6a21c1efa6d82d9d62a094b87796c36439c
  • Linux 6.18.41 x86_64 GNU/Linux
  • Node v22.23.2
  • Tasks plugin
  • Internal investigation task: BB-3
  • Agent thread: thr_f342e494gx

Steps to reproduce

  1. Open the Tasks plugin.
  2. Open any project's task list.
  3. Click “New task”.
  4. Focus the task title field.
  5. Enter a task title.
  6. Press Ctrl+Enter.
  7. Return to the project task list.

Did not reproduce with:

  • A single click on the “Create task” button.
  • Plain Enter in the title field.
  • Ctrl+Enter from another field in the dialog.

Expected vs actual

Expected:

  • One task is created.
  • The task receives one task number.

Actual:

  • Two tasks are created from one Ctrl+Enter submission in the title field.
  • Both tasks contain the same entered task data and receive separate task
    numbers.

Evidence

The title input has an Enter key handler, and the surrounding dialog has a
separate Ctrl+Enter handler. When Ctrl+Enter is pressed in the title field,
the event reaches both handlers. Both handlers can call createTask before
React commits the submitting state update.

The duplicate request was reproduced deterministically in focused UI test
coverage by submitting through Ctrl+Enter and counting createTask calls.

Investigation task: BB-3.
Agent thread: thr_f342e494gx.

What you ruled out

  • A single click on “Create task” does not reproduce the issue.
  • Plain Enter in the title field does not reproduce the issue.
  • Ctrl+Enter from another dialog field does not reproduce the same duplicate
    handler path.
  • The database task-number allocator is not the source of the duplicate;
    the duplicate requests originate in the dialog submission path.

Suggested priority and effort (optional)

No response

Checks

  • I reproduced this on the latest release or on main, or I say above that I could not.
  • I searched open and closed issues for the same problem.
  • If an agent wrote this, the body ends with > AGENT GENERATED and links the thread or report.

AGENT GENERATED, HUMAN REVIEWED

Activity

  1. added theissue type on Sep 10, 2026
  2. added
    ui
    tasks
    confirmed-repro
    on Sep 10, 2026
  3. bb-slop-cop commented on Sep 10, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classification: Bug · Priority: Medium · Effort: Low · Labels: ui, tasks, confirmed-repro.

    Reproduction report: REPRODUCED, high root-cause confidence. The title input and dialog shortcut both submit the same bubbling Enter event before React updates submission state. Two clean trusted-main checkouts each produced two requests for Ctrl/Meta+Enter in the title; both control cases produced one. Verification uses the real UI harness with RPC fixtures.

    Fix: PR #3389 stops propagation after the title handles Enter. Four regression cases; all 368 Tasks tests and typecheck pass. 60 changed text lines across two files. PR left open for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-reprotasksui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions