Skip to content

feat(runtime-api): add read-only snapshot listing#2822

Merged
Hmbown merged 1 commit into
codex/v0.9.0-stewardshipfrom
codex/v090-runtime-snapshots-list
Jun 6, 2026
Merged

feat(runtime-api): add read-only snapshot listing#2822
Hmbown merged 1 commit into
codex/v0.9.0-stewardshipfrom
codex/v090-runtime-snapshots-list

Conversation

@Hmbown
Copy link
Copy Markdown
Owner

@Hmbown Hmbown commented Jun 6, 2026

Summary

  • adds GET /v1/snapshots so GUI/VS Code clients can inspect recent side-git restore points
  • mirrors the existing /restore list [N] read-only bounds: default 20, max 100
  • keeps restore, retry, patch-undo, and other mutating runtime endpoints out of scope
  • preserves feat(runtime-api): add session save, undo/retry, and snapshot endpoints for GUI #2808's useful GUI runtime API direction while avoiding the atomicity risks called out there

Verification

  • cargo fmt --all -- --check
  • cargo test -p codewhale-tui snapshots_endpoint_lists_workspace_snapshots --locked
  • cargo clippy -p codewhale-tui --bin codewhale-tui --locked -- -D warnings
  • ./scripts/release/check-versions.sh
  • git diff --check

Note: a broader local cargo clippy -p codewhale-tui --all-targets --locked -- -D warnings still hits a pre-existing clippy::err_expect in crates/tui/src/prompts.rs; this PR's own await_holding_lock test issue was fixed before opening.

Credit

Maintainer harvest of the safe read-only snapshot-list portion of #2808. Thanks @gaord for the GUI runtime endpoint direction.

Refs #2808, #2580.

Harvest the safe GUI-facing snapshot list slice from PR #2808 without exposing restore, retry, patch-undo, or other runtime mutation endpoints. The endpoint is protected by the existing runtime API token middleware and mirrors the /restore list bound.

Refs #2808, #2580.

Co-authored-by: gaord <9567937+gaord@users.noreply.github.com>
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmbown has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

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