Skip to content

state: Store staged inline comments#1281

Open
abhinav wants to merge 3 commits into
branch-comment-forgefrom
branch-comment-spice-state
Open

state: Store staged inline comments#1281
abhinav wants to merge 3 commits into
branch-comment-forgefrom
branch-comment-spice-state

Conversation

@abhinav

@abhinav abhinav commented Jun 14, 2026

Copy link
Copy Markdown
Owner

The comments CLI needs a local representation for inline comments that
have been prepared but not submitted to a forge yet.

Staged comments now persist the target path, line range, body,
diff side, and optional thread identifier in the spice state database.
That gives command code a stable state boundary before it batches the
comments into a forge review.

Extracted from #1162

Forge implementations can now list, post, reply to,
batch-submit, resolve, and edit inline review comments.

GitHub, GitLab, Bitbucket, and ShamHub implement the shared
inline-comment interfaces so higher-level comment workflows can depend
on one forge boundary instead of forge-specific API calls.

Bitbucket and GitLab comment operations use typed gateway methods for
comment creation, thread resolution, and merge request discussions.
That keeps inline comment support on the same gateway boundary as the
rest of the forge integration.
@abhinav

abhinav commented Jun 14, 2026

Copy link
Copy Markdown
Owner Author

abhinav and others added 2 commits June 13, 2026 21:29
Inline comment operations now carry the thread identifier,
line range, and diff side as named forge-domain types.

The public inline-comment contract also owns thread resolution because
all current inline-comment implementations support it.
Inline comment editing is part of the base repository contract because
every repository implementation already provides the operation.
The comments CLI needs a local representation for inline comments that
have been prepared but not submitted to a forge yet.

Staged comments now persist the target path, line range, body,
diff side, and optional thread identifier in the spice state database.
That gives command code a stable state boundary before it batches the
comments into a forge review.

Extracted from #1162
@abhinav abhinav force-pushed the branch-comment-forge branch from c8254f9 to dabcd6f Compare June 14, 2026 04:30
@abhinav abhinav force-pushed the branch-comment-spice-state branch from 82cc3f5 to 7ee17ba Compare June 14, 2026 13:08
@ed-irl ed-irl force-pushed the branch-comment-forge branch 2 times, most recently from 1d76154 to 5e57d40 Compare June 19, 2026 01:03
@ed-irl ed-irl force-pushed the branch-comment-forge branch from 5e57d40 to b382179 Compare June 24, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changelog PRs that don't need a changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants