Skip to content

fix(compose): restore readonly metadata extraction#230

Merged
barrettruth merged 2 commits intomainfrom
fix/compose-metadata-readonly
Apr 13, 2026
Merged

fix(compose): restore readonly metadata extraction#230
barrettruth merged 2 commits intomainfrom
fix/compose-metadata-readonly

Conversation

@barrettruth
Copy link
Copy Markdown
Owner

Problem

Compose and edit buffers no longer show the fetched or template metadata users need for context, and the save path no longer exposes what the compose parser extracted from the commented block. That made the restored metadata direction untestable and left altered comment-block behavior undefined in specs.

Solution

Restore fetched and template metadata rendering in compose/edit buffers, request and parse the known forge fields again on the backend detail fetchers, and thread the parsed metadata through the save callbacks as an extra payload for tests and future per-forge handling. Add focused specs for metadata display, save-time extraction, and the agreed comment-block behavior when the opener is kept, removed, or the closer is missing.

Restore fetched and template metadata to compose/edit buffers so users can see the known forge fields again, and capture the metadata parser output on write for future backend-specific handling. This also locks in the agreed comment-block behavior where an intact opener preserves metadata parsing and a broken opener turns the block back into body text.
Update the shared forge detail and capability annotations to match the restored compose metadata fields and save callback payloads so static diagnostics reflect the real runtime objects.
@barrettruth barrettruth merged commit b144d17 into main Apr 13, 2026
8 checks passed
@barrettruth barrettruth deleted the fix/compose-metadata-readonly branch April 13, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant