Skip to content

Add Ask AI to plan and annotate reviews#763

Merged
backnotprop merged 4 commits into
mainfrom
feat/plan-ai
May 21, 2026
Merged

Add Ask AI to plan and annotate reviews#763
backnotprop merged 4 commits into
mainfrom
feat/plan-ai

Conversation

@backnotprop
Copy link
Copy Markdown
Owner

Summary

  • Add Ask AI to plan review and annotate sessions with a shared document side chat and comment-popover Ask AI action.
  • Mount the shared AI runtime across Bun plan/annotate/review servers and the Pi mirror, including long-lived SSE query handling.
  • Add origin-aware provider defaults, per-origin provider persistence, and the first-run Ask AI announcement for annotated documents.
  • Reuse the shared AI chat hook/icon path in code review and remove the old AI setup dialog.
  • Update docs/tests for provider defaults, plan/annotate AI context, and Pi route/runtime parity.

Self-review notes

  • Verified the plan/annotate implementation uses the same provider-agnostic AI endpoints as code review instead of a separate pipe.
  • Checked that Ask AI chat history stays separate from approve/deny annotation output.
  • Confirmed the notification follows the existing dismiss-once cookie pattern and reuses provider icon metadata.
  • Fixed one self-review issue before commit: stale provider IDs in the compact provider bar now fall back to an available provider cleanly.

Verification

  • PATH="$PWD/packages/ui/node_modules/.bin:$PATH" bun run typecheck
  • bun test
  • bun run build:hook
  • Rebuilt local which plannotator binary and confirmed plannotator 0.19.20

- mount shared AI runtime on plan, annotate, review, and Pi servers

- add shared document chat UI and comment-popover Ask AI entry point

- default providers from detected agent origin and document first-run announcement

- reuse shared code-review AI hook and document setup/docs
Stabilize AI chat session resets and callbacks, preserve per-origin provider defaults, share AI chat formatting utilities, and avoid blocking startup on model discovery.
Show formatted tool input in document AI permission cards and make Pi AI provider CLI detection work on Windows.
Keep AI runtime startup non-blocking while making the capabilities endpoint await pending Pi/OpenCode model discovery before returning provider metadata.
@backnotprop backnotprop merged commit 2a55286 into main May 21, 2026
10 checks passed
@backnotprop backnotprop deleted the feat/plan-ai branch May 21, 2026 08:32
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