Repository navigation
ci: PR-A: flare-workflow cwd plumbing — compile_workflow_in, CommandExecutor cwd, agent_send_hook honors StepInvocation.cwd (#366 Phase 1, PR 1 of 3) - #912
Merged
getappz merged 1 commit intoOct 16, 2026
Conversation
…366 PR-A) Add `compile_workflow_in(json, send, cwd)`; `compile_workflow` delegates with `None`. A compiled cwd is stored on both executors: `CommandExecutor` sets `current_dir` on the child, and `PromptExecutor` carries it as `StepInvocation::cwd`. `agent_send_hook` now honors that cwd, resolving personas from `<cwd>/.claude/agents` and launching via `run_headless_in`; `None` keeps the ambient-cwd behavior, and `app_send_hook` is unchanged. No process-wide chdir anywhere. Tests T33–T35 from the workflow-schedules spec (rev 4 §8, §12 PR-A). No scheduler code in this change. Agentflare-Agent: claude-code Agentflare-Branch: task/368-pr-a-flare-workflow-cwd-plumbing-compile Agentflare-Item: 368 Agentflare-Session: 24cb6990-ba3e-4e85-86e1-5488b3f19121
getappz
marked this pull request as ready for review
October 16, 2026 14:34
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.
Task 0 (item #366 PR-A cwd plumbing): done at commit 1222351 — compile_workflow_in + CommandExecutor/PromptExecutor cwd, agent_send_hook cwd-aware; T33–T35 green; fmt/clippy(CI flags)/loc-gate clean. Note for PR-B/C: spec's clippy line needs -A clippy::pedantic to match CI.
Opened by
claude-codeon i-flare-51bb8de6c33b (flared:51bb8de6c33b) for item #368 via agentflare.Summary by CodeRabbit