Skip to content

Project field autocompletes prematurely while typing, truncating input. #567

@mrkskk

Description

@mrkskk

Bug Description

When assigning a project to a task in the Task Genius viewer, the project
input field autocompletes after a fixed timeout — before the user has
finished typing and without any explicit confirmation (e.g. Enter or Tab).
This causes the project name to be truncated to whatever partial text was
entered at the time the autocomplete fires.

Typing faster allows slightly more characters through, confirming this is
time-based rather than input-based.

Steps to Reproduce

  1. Open a sandboxed vault with only Task Genius enabled
  2. Create a markdown checkbox and write a task (e.g. - [ ] Task 1)
  3. Open the Task Genius task viewer
  4. Locate the task (e.g. - [ ] Task 1) Click the + icon below the task to add metadata
  5. Click into the Project field and begin typing a project name (e.g. "application")

Result: After a very short delay, the field autocompletes and commits the
partial input (e.g. "app" or "appl" if the intended project name was "application") without any confirmation from the user.

Expected Behavior

The project field should only commit a value when explicitly confirmed
(Enter, Tab, clicking a suggestion, or clicking elsewhere). Typing speed should have no bearing
on when a value is committed. The input field should not have a timer at all.

Actual Behavior

The field commits whatever partial input exists after a fixed number of
milliseconds, truncating the intended project name. This makes in nearly impossible to write project names longer than 3-4 letters using the Task Genius Viewer.

Environment

  • Obsidian version: 1.12.4
  • Task Genius version: [9.13.1] (2025-12-11)
  • **Task Genius settings: ** Default settings.
  • OS: MacOS Sonoma, Windows 11.
  • Other plugins enabled: None (sandboxed vault)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions