Skip to content

auto-format/treefmt: biome aborts on pm-stack/aggregator/src/ui.css — Tailwind v4 directives disabled in biome.json, so every format pass fails and commits nothing #7609

Closed

Description

@developing-today

Problem

nix run .#format (treefmt) — the formatter the scheduled auto-format workflow runs on main (.github/workflows/auto-format.yml, the one-repo PoC tracked by #2015) — aborts on pm-stack/aggregator/src/ui.css. Biome refuses the file because it contains Tailwind v4 directives (@source, @plugin "daisyui" { … }) and Biome's CSS parser has Tailwind-directive parsing disabled (biome.json has no css.parser.tailwindDirectives).

Because treefmt treats a formatter error as fatal, the whole pass exits 1 and nothing is committed — so the auto-format pass is a no-op stuck loop: it reformats app.css every run, then throws the result away when the ui.css error aborts the run. This is the failure seen in the scheduled runs on 2026-11-05/06/07 (42438417218 at the time of writing still sitting in queued; 42360613068, 42311315333, 42210543931 … all failure).

Evidence (reproduced on current main, 5ab0c06928)

$ nix run .#format -- pm-stack/aggregator/src/ui.css
…
pm-stack/aggregator/src/ui.css:12:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  × Tailwind-specific syntax is disabled.
     12 │ @source "./";
  i Enable `tailwindDirectives` in the css parser options, or remove this if you are not using Tailwind CSS.
pm-stack/aggregator/src/ui.css:13:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  × Tailwind-specific syntax is disabled.
     13 │ @plugin "daisyui" {
Found 2 errors.
Error: failed to finalise formatting: formatting failures detected

The same error is what fails the scheduled workflow (log of run 42360613068, step "Format changed files with treefmt and commit any fixes"). The file is authored as Tailwind v4 + DaisyUI v5 on purpose (pm-stack/aggregator/src/ui.css header, Phase C #6153) and is built by bun run build:css (tailwindcss -i src/ui.css -o src/assets/app.css), so removing the directives is not an option.

Verified minimal fix

Add the parser option Biome itself points at:

"css": {
  "formatter": { "enabled": true, "indentStyle": "space", "indentWidth": 2 },
  "linter": { "enabled": true },
  "parser": { "tailwindDirectives": true }
}

With that one key, nix run .#format -- pm-stack/aggregator/src/ui.css pm-stack/aggregator/src/assets/app.css biome.json exits 0 and is idempotent (second run: formatted 0 files (0 changed)). Biome's own hint names this exact option, and the equivalent CLI flag --css-parse-tailwind-directives=true makes plain biome format succeed, confirming it is the correct lever (treefmt cannot pass per-file flags, so the config key is the fix).

Open question for the fix (design, not blocking)

pm-stack/aggregator/src/assets/app.css is a generated artifact (bun run build:css output, committed per the file header and deployed without a build step). Once the pass stops aborting, treefmt will commit Biome's reformat of both files (~3,000 lines of mechanical churn). Decide whether to keep letting Biome format the generated app.css (status-quo intent) or add it to treefmt.toml [global] excludes / format it inside the build, so regeneration does not fight the formatter.

Acceptance

  • nix run .#format -- pm-stack/aggregator/src/ui.css exits 0 (no parse error) and a second run reports 0 changed.
  • A scheduled auto-format run on main completes successfully and commits (or verifies clean) rather than failing on the ui.css parse error.
  • The generated-app.css question above is resolved with the choice recorded.

Related: #2015 (format auto-fix PoC), #5230 (push-race retry), #6153 (Tailwind/DaisyUI aggregator UI).

Acceptance criteria

  • nix run .#format (treefmt) completes on a tree containing pm-stack/aggregator/src/ui.css without the Tailwind-directives parse abort.
  • The scheduled auto-format workflow (.github/workflows/auto-format.yml) goes green on main and commits real formatting output again (it is currently a no-op stuck loop: format, abort, discard).
  • ui.css keeps its Tailwind v4 / DaisyUI directives (removing them is not an option — the file is authored that way on purpose, Phase C pm-stack overhaul: port registry, functional audit, Tailwind/DaisyUI/Datastar UI (2026-11-05) #6153), and bun run build:css output is unchanged.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/highImportant and time-sensitive
    area/ciCI/CD pipelines, workflows, and build automation (area)
    on Nov 8, 2026
  2. added
    source/queue-workerFiled or worked by the queue/worker pilot
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 8, 2026
  3. dezren39 commented on Nov 8, 2026

    @dezren39
    Member

    Intake review

    Related: #2015 (the one-repo auto-format PoC this workflow tracks); Phase C #6153 (the ui.css authoring this must not undo).
    Live check: the failure reproduces on current main 5ab0c06928 per the filer's evidence, and the scheduled runs on 2026-11-05/06/07 all failed on it; this issue already carries priority/high — no priority change at intake.
    Notes / risks: the verified minimal fix is one biome.json key (css.parser.tailwindDirectives: true). The risk to check in the fixing PR is blast radius: enabling Tailwind parsing changes how biome treats every CSS file, so the PR should show the format diff it produces.
    Suggested approach: add the parser key exactly as the issue's verified fix specifies, run the format pass in CI on the PR, and confirm the auto-format workflow's next scheduled run commits.

    — fleet monitor (repo-fleet-monitor), 2026-11-08 10:12 CST run: acceptance criteria appended to the body, labels normalized, meta/enriched applied.

  4. dezren39 commented on Nov 9, 2026

    @dezren39
    Member

    Handed off — task 13268 (lane code-v)

    Execution lane assigned: opencode (lane row 5544). Checkpointed handed_off and parked 1200s; the laptop opencode claimant launches the bound session. Issue revalidated fresh via gh this shift: open, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit).

  5. dezren39 commented on Nov 9, 2026

    @dezren39
    Member

    🤖 Agent note · handed off

  6. added
    work/assignedQueue worker lifecycle state
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed on Nov 9, 2026
  7. 57 remaining items

  8. dezren39 commented on Nov 10, 2026

    @dezren39
    Member

    Lane code-x terminal note for task 13268 (issue #7609) — outcome: triaged (bookkeeping, per runbook 1c).

  9. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 10, 2026
  10. dezren39 commented on Nov 10, 2026

    @dezren39
    Member

    🤖 Agent note · picked up — Agent: queue worker (repo-worker-code), lane code-n — Session/ID: task 14496, repo-queue-worker-shift-n 2026-11-09 run. Task 14496 (small_fix) for issue #7609: biome.json css.parser.tailwindDirectives=true so treefmt stops aborting on pm-stack/aggregator/src/ui.css. Execution lane row 5680 = direct; this lane works it. Fresh check: issue #7609 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels, no status/needs-triage; main biome.json has no css.parser section; no open PR owns this fix (PR #7742 touches only pkgs/id/web files). Next: worktree on laptop, implement, verify with nix run .#format twice (idempotent), open PR.

  11. dezren39 commented on Nov 10, 2026

    @dezren39
    Member

    🤖 Agent note · parked (CI pending) — Agent: queue worker (repo-worker-code), lane code-n — Session/ID: task 14496, repo-queue-worker-shift-n 2026-11-09 run. Task 14496 (small_fix) for issue #7609: PR #8109 opened (head 6b75ac2; biome.json tailwindDirectives + ui.css formatter override, treefmt.toml excludes generated app.css). Local verification: nix run .#format exit 0 twice, 0 changed; stylesheet-pinning tests 70/70 pass; full-suite failures proven pre-existing on clean main. Codex review failed to run (usage limits, no findings produced) — disposition + re-review request on PR #8109 comment 6758316063. PR basic checks still pending after the 5-minute poll window, so task 14496 is parked 20 minutes; resume: read PR #8109 checks fresh, merge when green (PR carries Closes #7609), then complete task 14496.

  12. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 10, 2026
  13. added a commit that references this issue on Nov 10, 2026
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

    area/ciCI/CD pipelines, workflows, and build automation (area)kind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivequeue/parkedQueue task is parked (waiting on CI, time, or an event)source/queue-workerFiled or worked by the queue/worker pilotstatus/parkedDeliberately paused with a recorded resume conditiontask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions