Skip to content

fix: refresh task state after failed mutations#39

Merged
Abdulmuiz44 merged 1 commit into
mainfrom
fix/task-mutation-recovery-workspace-validation
Jun 10, 2026
Merged

fix: refresh task state after failed mutations#39
Abdulmuiz44 merged 1 commit into
mainfrom
fix/task-mutation-recovery-workspace-validation

Conversation

@Abdulmuiz44

Copy link
Copy Markdown
Collaborator

No description provided.

@Abdulmuiz44 Abdulmuiz44 merged commit 5a7008d into main Jun 10, 2026
1 check passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 744f442794

ℹ️ 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".

return Err("Task workspace_path is required".to_string());
}

if !workspace_paths_equivalent(self.workspace_root(), Path::new(task_workspace)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Don't reject daemon-managed tasks by data-dir root

In the daemon path, DaemonState::new builds one TaskStore rooted at config.data_dir (crates/codra-daemon/src/state.rs:69), while create_task records the user-supplied project path in task.workspace_path (crates/codra-daemon/src/main.rs:199-200). This new comparison therefore treats every normal daemon task as belonging to the workspace rather than the daemon data directory, so /tasks/:id/approve, cancel, execute, and verify all fail with "belongs to workspace ... not ..." whenever data_dir != workspace_path. The workspace ownership check needs to account for centralized stores or be applied only to workspace-local stores.

Useful? React with 👍 / 👎.

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