Skip to content

[Bug]: Task create/edit loses fields; special chars and multiline descriptions break markdown round-trip #1

Description

@rosspeili

HPPM version

v0.26 (Windows installer)

How do you run HPPM?

Windows installer (HPPM.exe)

OS

Windows 11

Theme (if UI-related)

N/A

What happened?

Creating or editing a task does not reliably persist everything the user entered (title, description, tracker, priority, tags, dates, impact/effort). Several failure modes:

  1. Create modal — fill many fields → only title (or partial description) survives; other fields vanish after create.
  2. Special characters in title (-, ;, :, ?, and likely similar) — parsing treats hyphen / separator-like characters as title↔description splits, so text after - becomes description or breaks the checkbox line.
  3. Long or multiline descriptions — fail to save, truncate, or break the single-line markdown checkbox format (- [ ] **Title** — description).
  4. UX gap — after a successful create, the new task should open in the task drawer so the user can continue editing.

Markdown remains the source of truth for the checkbox line; any fix must preserve readable *.md or document an explicit store-backed description strategy without silent data loss.

Acceptance / contributor guide (for implementers):

  • Persist every create-modal field to markdown + .hppm/store.json.
  • Document delimiter rules; special chars in title must not steal description (prefer canonical only, or store-backed body when unsafe).
  • Multiline / max-length: either supported via a defined encoding or clearly rejected in UI — never silent truncate.
  • Successful create opens the drawer on the new #.
  • Trace create API + server/markdown.ts encode/decode; add unit tests for hyphen-in-title, ?, :, ;, long/multiline cases.
  • No regression on complete / priority / tracker move (fingerprint resolution).
  • Out of scope: subtasks, mentions, attachments.

Expected behavior

  • All create-modal fields persist correctly.
  • Titles may contain -, ;, :, ?, etc. without wrong splits.
  • Multiline/long description behavior is explicit and lossless (or clearly blocked).
  • On successful create → task drawer opens on the new issue.

Steps to reproduce

  1. Create → New task; fill title, detail, tracker, priority, tags, dates, impact/effort; save. Inspect markdown + drawer — fields missing.
  2. Create with title Ship v0.27 - final bits; observe title/description split.
  3. Paste a long multiline detail; save; reopen — truncated/failed/corrupt.
  4. Confirm drawer does not auto-open after create.

Error / console / network (optional)


Redacted markdown / store snippet (optional)

# Example tracker
## Med
- [ ] **Ship v0.27 - final bits**


After create with hyphen in title, description/title split is wrong vs intended single title string.

Checklist

  • I searched existing issues for a duplicate
  • I redacted personal data from any samples

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:drawerTask drawer — fields, edit, delete, notesarea:markdownTracker *.md format, sections, checkbox linesarea:uiChrome, header, footer, modals, shared UIbugSomething is broken or behaves incorrectlyregressionUsed to work — broke after a change or release

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions