Phase 2: custom-instructions panel on the account page

↗ view on GitHub · Claude · 2026-05-15 · d2a8512b

Adds a Custom Instructions section to /account that fetches and saves
via the new PIP /me endpoints. The section explains that user-level
instructions are additive on top of the organisation's instructions
and may not override them, and includes the AI-output disclaimer.

  - Loads the current custom_instructions from GET /me.
  - Saves with PATCH /me. Live character counter against the 4096 cap.
  - Shows a Discard button when dirty, a Saved indicator on success,
    and a red counter when the textarea exceeds the cap.

The existing display name, organisation, plan, sign-out, and delete-
account sections on the same page continue to use the upstream
Supabase-backed paths; they will be migrated when those backend routes
move off the Supabase JS client onto plain pg.

End-to-end round trip verified against Postgres 16:
  - GET /me returns the existing instructions.
  - PATCH /me persists a new value.
  - 5000-character payload is server-side truncated to 4096.
Repository cpatpa/PIP
Author Claude <noreply@anthropic.com>
Authored
Parents afde5326
Stats 3 files changed , +202
Part of Phase 2 - onboarding wizard + custom instructions + practice profile

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-d2a8512b.md from inside the repo you want the change in.

⬇ Download capture-commit-d2a8512b.md