GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id(web): bullet and ordered lists lose their tight flag in the editor — richSchema declares no tight attr, so every tight list saves as a loose list · Issue #1469 · developing-today/code

id(web): bullet and ordered lists lose their tight flag in the editor — richSchema declares no tight attr, so every tight list saves as a loose list #1469

New issue
Copy link
New issue
Copy link
Closed
#1559
Closed
id(web): bullet and ordered lists lose their tight flag in the editor — richSchema declares no tight attr, so every tight list saves as a loose list#1469
#1559
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Oct 27, 2026
Issue body actions

Summary

richSchema in the id web editor declares no tight attr for bullet_list and no tight attr for ordered_list, even though the Rust markdown codec carries tight on both. Node.fromJSON silently drops undeclared attrs on editor load, and the codec's save side defaults a missing tight to false (loose). Net effect: every tight bullet or ordered list opened in the web editor is rewritten as a loose list on the next save — blank lines are inserted between every item. This is the same schema-mirror defect class as #1036 (task_list, fixed) and #1436 (code_block, fixed today in PR #1447); those two fixes mirrored their node types and left the plain list types behind.

Evidence (verified this run, main 1ff34134)

TS side — pkgs/id/web/src/editor.ts:46:

  • The schema is built as addListNodes(basicSchema.spec.nodes, "paragraph block*", "block") and then .update(...) is applied only to code_block (:47) and image (:73); the appended nodes (task_list, table, html_inline, …) include the task_list mirror from id(web): loose task list items fuse on save — task_list hardcodes tight, second paragraph/code block destroyed #1036. bullet_list / ordered_list / list_item are never updated.
  • In [email protected] (the version in pkgs/id/web/package.json), bulletList declares no attrs at all and orderedList declares only {order: {default: 1}}.

Probe — verbatim richSchema definition extracted from editor.ts (sha256 81a60bfd…), run under Bun on the laptop (~/git/fleet/probe-2026-10-27-laneA-lists, log hidden_files/probe-2026-10-27-laneA-lists/out.log in the goal workspace):

bullet tight=true  IN : {"tight":true}            OUT: null            SPEC attrs: []
bullet tight=false IN : {"tight":false}           OUT: null            SPEC attrs: []
ordered order=3 tight=true  IN : {"order":3,"tight":true}  OUT: {"order":3}  SPEC attrs: ["order"]
ordered order=3 tight=false IN : {"order":3,"tight":false} OUT: {"order":3}  SPEC attrs: ["order"]
task_list tight=false (control, #1036)  IN : {"tight":false,"order":null} OUT: {"tight":false,"order":null}  SPEC attrs: ["tight","order"]
code_block params/htmlBlock (control, #1436) IN : {"params":"html","htmlBlock":true} OUT: {"params":"html","htmlBlock":true}  SPEC attrs: ["params","htmlBlock"]

tight is dropped in both directions for plain lists; order survives; the two previously fixed node types survive as controls.

Rust side — pkgs/id/src/web/markdown.rs:

  • Parse emits it: bullet "attrs": {"tight": tight} (:267-268), ordered "attrs": {"order": list.start, "tight": tight} (:257-261).
  • Save requires it: bullet_list arm let tight = json["attrs"]["tight"].as_bool().unwrap_or(false); (:1193) and ordered_list arm the same (:1205) — a missing attr becomes a loose NodeList, which comrak renders with blank lines between items.

So - a\n- b (tight) → editor load (attr dropped) → save → - a\n\n- b (loose). Loose lists survive only by accident, because the save-side default happens to be false.

Why it matters

Tight lists are the overwhelmingly common case. Any document containing one is silently reformatted — every item separated by a blank line — by a single open + save in the web editor, producing noisy whole-document diffs and changing list rendering semantics. It is silent data corruption of the same class the fleet has been fixing node type by node type (#1036, #1436); this is the remaining unmirrored node pair.

Fix direction

Mirror the codec attrs into richSchema following the #1036/#1436 pattern: .update("bullet_list", { attrs: { tight: { default: <see below> } }, … }) and .update("ordered_list", { attrs: { order: { default: 1 }, tight: { default: <see below> } }, … }), preserving the inherited content/group/parseDOM/toDOM fields exactly as the code_block update does. Choose the tight default deliberately (the codec's legacy-doc inference in the task_list arm at :1225 is the house precedent for absent-attr docs); a false default matches the codec's current save-side behaviour for editor-created lists.

Acceptance criteria

  • richSchema.nodeFromJSON → toJSON round-trips bullet_list attrs.tight (true and false) and ordered_list attrs {order, tight} unchanged; order behaviour is not regressed.
  • A tight bullet list and a tight ordered list survive a full open → editor load → save cycle byte-identically (codec round-trip test or editor + codec integration evidence).
  • Regression tests in pkgs/id/web/src/editor.test.ts in the style of the id(web): PR #1024's htmlBlock provenance attr is dropped by the editor schema — HTML blocks still re-fence on editor save (#982 regression path) #1436 code_block block (spec declares the attrs; {params…}-style fromJSON→toJSON cases for both list types).
  • Existing editor.test.ts and web::markdown suites pass in CI; lists created fresh in the editor still save correctly (tight by default for single-paragraph items).

Dedup

Checked open + closed issues for tight / bullet_list / ordered_list schema mirroring this run: #1036 (closed) covered task_list only; #1436 (closed, PR #1447) covered code_block only. #1380 (ordered-list ) delimiter), #1397 (adjacent-list end comments), and #1370 (mixed task/plain lists) are different mechanisms in the Rust codec, not the editor schema.

Activity

Next
  1. developing-today commented on Oct 27, 2026

    @developing-today
    developing-todayBot
    on Oct 27, 2026 – with developing.today
    Contributor
    More actions

    CODE-545

  2. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    on Oct 27, 2026
  3. dezren39 commented on Oct 27, 2026

    @dezren39
    dezren39
    on Oct 27, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator (lane A, job new-issue-creator-code-a)
    • Session / ID: cron new-issue-creator-code-a, run 2026-10-27 11:35 CDT
    • Found via: filed this run
    • Task: Triage the richSchema list-tight mirror gap: declare tight on bullet_list and tight (+ existing order) on ordered_list in pkgs/id/web/src/editor.ts following the id(web): loose task list items fuse on save — task_list hardcodes tight, second paragraph/code block destroyed #1036/id(web): PR #1024's htmlBlock provenance attr is dropped by the editor schema — HTML blocks still re-fence on editor save (#982 regression path) #1436 pattern, with editor.test.ts regression tests in the id(web): PR #1024's htmlBlock provenance attr is dropped by the editor schema — HTML blocks still re-fence on editor save (#982 regression path) #1436 style.
    • Expectation: effort/s — done when tight bullet/ordered lists round-trip fromJSON->toJSON with tight intact and survive an open->save cycle byte-identically, with existing editor/markdown suites green in CI.
    • Links: probe (laptop) ~/git/fleet/probe-2026-10-27-laneA-lists, log hidden_files/probe-2026-10-27-laneA-lists/out.log in the goal workspace
  4. github-actions
    assigned
    dezren39
    on Oct 27, 2026
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Oct 27, 2026
  6. 115 remaining items

  7. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane D
    • Session / ID: queue task 1504 (resumed claim, 2026-10-28 07:17Z)
    • Found via: queue claim
    • Task: Parked — CI on PR id(web): mirror tight attr into richSchema bullet/ordered lists (#1469) #1559 (id run 40634718086) still pending after the 5-minute poll window: at 07:22Z 8 checks queued/in-progress (incl. test-web-unit, test-shard-1/2/3, crash gates, doc), 0 failures. Already green: test-unit, test-web-typecheck, web-lint, cargo-check, clippy, all fmt checks.
    • Expectation: Resume condition: id run completes; merge PR id(web): mirror tight attr into richSchema bullet/ordered lists (#1469) #1559 when fully green per standing criteria, then close out task 1504.
    • Links: PR id(web): mirror tight attr into richSchema bullet/ordered lists (#1469) #1559 · branch queue/1504-1469-list-tight @ 060f16d
  8. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    Resumed by Lane B worker (queue task 1504): PR #1559 CI re-checked fresh at 2026-10-28T07:52Z. All 30 constituent checks pass, including test-web-unit, test-web-typecheck, web-lint, test-unit and all nix flake sub-checks; the only outstanding check is the aggregate nix flake check job (run 40634718086, job 122689852467), still queued after >5 minutes of polling. Parking again until that aggregate completes; merge immediately on resume when it is green.

  9. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 28, 2026
  10. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane C
    • Session / ID: queue task 1504 (resumed from parked awaiting_ci checkpoint)
    • Found via: queue claim
    • Task: verify PR 1559 CI fresh and finish the id(web): bullet and ordered lists lose their tight flag in the editor — richSchema declares no tight attr, so every tight list saves as a loose list #1469 tight-attr fix
    • Expectation: effort s; done = PR 1559 merged with verified checks, or parked again if CI genuinely blocks
    • Links: PR id(web): mirror tight attr into richSchema bullet/ordered lists (#1469) #1559 · branch queue/1504-1469-list-tight @ 060f16d
  11. dezren39
    added a commit that references this issue on Oct 28, 2026

    Merge pull request #1559 from developing-today/queue/1504-1469-list-t…

    9752a47
  12. dezren39
    closed this as completedin #1559on Oct 28, 2026
  13. developing-today
    added
    status:done
    on Oct 28, 2026
  14. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane C
    • Session / ID: queue task 1504
    • Found via: queue claim (resumed from parked awaiting_ci)
    • Task: finish id(web): bullet and ordered lists lose their tight flag in the editor — richSchema declares no tight attr, so every tight list saves as a loose list #1469 tight-attr fix via PR 1559
    • Expectation: met — PR merged
    • Links: PR id(web): mirror tight attr into richSchema bullet/ordered lists (#1469) #1559 merged 9752a47 · branch queue/1504-1469-list-tight (deleted on merge)
    • CI note: all 30 constituent checks SUCCESS incl test-web-unit, test-unit, test-web-typecheck; the aggregate nix flake check summary job 122689852467 sat QUEUED with no runner assigned for 45+ min (infra stall, not a test result) — merged under the standing directive after verifying every constituent check green and the diff matches intent.
  15. dezren39
    removed
    status:done
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.