| Age | Commit message (Collapse) | Author |
|
|
|
Each plan mode session now tracks an activePlanFile. On first write
the target path is adopted as the active plan for that session. Any
subsequent write or edit to a different, already-existing plan file
in ~/.pi/plans is blocked with a clear message directing the agent to
create a new file instead.
Behaviour summary:
- New file → always allowed; becomes the active plan.
- Same file again → always allowed (updating the current plan).
- Different existing file → blocked unless explicitly the active plan.
- activePlanFile is persisted across session restores and reset to
undefined whenever plan mode is entered fresh via /plan.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Plan mode previously allowed writing any .md file anywhere in the
project tree. Now write/edit tool calls are blocked unless the target
path is inside ~/.pi/plans (created on demand with mkdir -p).
The agent context prompt and task annotations are updated to match,
so the agent knows exactly where to put plan files and never touches
the project directory.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
The mode:deactivate event listeners in ask-mode and agent-plan-mode
correctly switched tool sets but had no access to ExtensionContext,
so the status bar indicator and notification were never updated when
one mode deactivated the other.
Fix: store lastCtx whenever a command handler or session_start fires,
then use it in the mode:deactivate listener to clear the status widget
and show a notification.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
references
Rename extension from taskwarrior-plan-mode to agent-plan-mode.
Replace all Taskwarrior mentions with neutral task/ask terminology.
Update STATE_TYPE, custom types, error messages, and README.
Replace all task calls to use new ask subcommand syntax:
- ask list start.any: instead of ask start.any: export
- ask ready instead of ask +READY export
- ask info uuid: instead of ask uuid: _uuid
- ask annotate uuid: instead of ask uuid: annotate
- ask done uuid: instead of ask uuid: done
- ask modify uuid: instead of ask uuid: modify
- ask add with dep:add: instead of depends:
Remove _uuid lookups - UUID embedded at creation via ask info.
Remove taskwarrior-task-management and taskwarrior-plan-mode custom types.
All valid-example strings updated to new ask subcommand syntax.
Also updated: ask list +BLOCKED for blocked tasks visualization.
|