Repository navigation
feat: store retention_days and a server-side /undo that refuses while work is active or due - #502
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b284fa58d8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5f93af56f7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4bd091901a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
4bd0919 to
45071e1
Compare
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 45071e1380
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
… work is active or due
975d83a to
50afc07
Compare
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Change
Finishes plan section H, which #501 started, and removes section H from the plan.
retention_days(store retention). New top-level key,1–3650. It is unset by default, so nothing is deleted unless you set it.DeleteSession, so each one is asession_deletedevent.refs/qq/snapshots/entries older than the cutoff, in addition to the cap of 50./undoin the TUI, as a server command. Newundo_workspacecommand (POST /v1/workspaces/undo) with aworkspace_undoneoutcome.PROTOCOL_VERSIONgoes from 41 to 42.qq undoand the server now share the same snapshot selection.Verification
Regression tests for the guard and the retention sweep, each confirmed to fail when its fix is reverted:
cargo nextest run -p qq-core -E 'test(/no_run_starts_in_the_workspace_until_its_restore_finishes/)': fails without the claim guard.cargo nextest run -p qq-core -E 'test(/a_due_goal_waits_for_a_workspace_restore/)': fails without the goal-queue guard.cargo nextest run -p qq-core -E 'test(/a_failed_undo_leaves_the_workspace_free_to_run/)': hangs if the flag is not cleared after a failure.cargo nextest run -p qq-core -E 'test(/undo_in_a_subdirectory_never_restores_the_parent_workspace/)': fails if an enclosing workspace's snapshot is used.cargo nextest run -p qq-core -E 'test(/retention_deletes_idle_sessions/)': hangs without the sweep.Other tests:
command_idreturns the first receipt without restoring again.retention_days./undoround trip.command_undo_workspaceandreceipt_workspace_undonegoldens;v42fixtures regenerated, withv41kept.cargo xtask checkpassed on the pushed head.Known impact
qq undoon the CLI still works on the files directly and does not check for running agents. The guide says so.xtask/src/legacy-sleeps.txtline numbers moved. No new sleeps were added.