Skip to content

Expose AI Assist custom system prompts - #15

Merged
adamtheturtle merged 1 commit into
mainfrom
agent/expose-ai-assist-system-prompts
Jul 24, 2026
Merged

Expose AI Assist custom system prompts#15
adamtheturtle merged 1 commit into
mainfrom
agent/expose-ai-assist-system-prompts

Conversation

@adamtheturtle

@adamtheturtle adamtheturtle commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Closes #14.

What changed

  • expose Question.aiAssistCustomSystemPrompt from ai_assist_custom_system_prompt
  • support the field in question create and update payloads without breaking existing initializers
  • preserve the value through optimistic question copies
  • teach the mock server to create and update the field, including updates to newly created questions
  • cover present, null, absent, create, and update cases

Why

Question-specific AI Assist instructions were returned by the API but discarded by CoderPadKit, preventing faithful review and synchronization of AI-enabled questions.

Validation

  • swift test — 119 tests passed

CI note

The macOS build/test check passes. The SwiftLint job currently fails on 35 pre-existing violations in unrelated Screen files on the base branch; none are in this PR’s changed files.


Note

Low Risk
Additive optional field and mock merge fix; no auth or breaking API changes to existing initializers.

Overview
Adds Question.aiAssistCustomSystemPrompt (ai_assist_custom_system_prompt) so interviewer-only AI Assist instructions from the API are decoded, sent on create/update, and kept on optimistic question copies instead of being dropped.

Mock server: create responses persist the field; allQuestions() now merges updates onto session-created questions (not only fixtures) so PUT round-trips work for new IDs.

Tests cover decode (present / null / absent), mock create+update, and spacing preservation.

Reviewed by Cursor Bugbot for commit a1fb3c9. Bugbot is set up for automated code reviews on this repo. Configure here.

@adamtheturtle
adamtheturtle marked this pull request as ready for review July 24, 2026 15:45
@adamtheturtle
adamtheturtle merged commit 6172239 into main Jul 24, 2026
2 of 3 checks passed
@adamtheturtle
adamtheturtle deleted the agent/expose-ai-assist-system-prompts branch July 24, 2026 15:46
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.

Support AI Assist custom system prompts on questions

1 participant