fix(compose): restore readonly metadata extraction#230
Merged
barrettruth merged 2 commits intomainfrom Apr 13, 2026
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.