Expand description
Runtime state directory resolution for plan-issue.
plan-issue writes its canonical artefacts under
<state-dir>/out/plan-issue-delivery/.... The state directory is
resolved (in order) from:
- CLI override set via
set_state_dir_override(driven by the--state-dirglobal flag). PLAN_ISSUE_HOMEenvironment variable (fallback for adapters that pin a workspace via env, such as the CLI’s own integration tests).${XDG_STATE_HOME:-$HOME/.local/state}/plan-issuedefault.
Callers must read the resolved path through state_dir; the helper
is the single entry point for runtime-layout math elsewhere in the
crate (see runtime_layout::runtime_root, task_spec, render,
execute).
Constants§
- PLAN_
ISSUE_ STATE_ HOME_ ENV - Environment variable consulted when no
--state-dirflag is passed.
Functions§
- set_
state_ dir_ override - Set or clear the CLI-level
--state-diroverride. - state_
dir - Resolve the active state directory using the documented chain.