Files
ai-agent/backend/goal.py
Gabriel Vidal 426bc0b18c feat(ai-agent): flat goals board, expand an item to its full text
- Drop the version grouping. Sectioning by version boxed the sort in: a group
  key has to dominate or the headers interleave, so a goal with three agents on
  it could only lead its own version block. The board is now one flat list,
  running-first then most-recent — the order it's actually read in. Each card
  still shows its version on its milestone bar, so nothing is lost. Deletes
  goals/lib/version.ts, whose only consumer was that grouping.

- Clicking a checklist item on a card now expands it to its full markdown
  (bold lead, prose, inline code) instead of truncating to one ellipsised line —
  the same reveal the detail page's GoalChecklist already does. The virtual list
  measures rows, so growing a card re-measures correctly.

- Fix a summary regression this surfaced: an item opening with a bracket tag
  (`**[human]** Pick the art direction…` in moooo's GOAL.md) summarised as just
  "[human]", because the bold-lead rule took the tag as the handle. A leading
  bracket tag says what an item *needs*, not what it is, so _plain now strips it
  before looking for the lead. Long bracketed prose is left alone.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-19 22:48:35 +02:00

18 KiB