Skip to content

IMPLEMENT: use claude-haiku-4-5-20251001 for reconcile queries (closes #234)#244

Closed
DaveHudson wants to merge 2 commits intomainfrom
sandcastle/issue-234-review-changes-modal-slow
Closed

IMPLEMENT: use claude-haiku-4-5-20251001 for reconcile queries (closes #234)#244
DaveHudson wants to merge 2 commits intomainfrom
sandcastle/issue-234-review-changes-modal-slow

Conversation

@DaveHudson
Copy link
Copy Markdown
Collaborator

Summary

  • IMPLEMENT: use claude-haiku-4-5-20251001 for reconcile queries (closes Review Changes Modal Slow #234)
  • REVIEW: fix extractOpsArray bracket scanning, restore ChatPanel CSS auto-grow

Closes #234

DaveHudson added 2 commits May 1, 2026 14:00
…#234)

Reconcile:query was sharing currentModel (claude-sonnet-4-6) with the chat
session. Haiku is sufficient for structured JSON extraction and significantly
faster. Extracted buildReconcileSystemPrompt, buildReconcileUserTurn, and
extractOpsArray into reconcile-query.ts with RECONCILE_MODEL = haiku constant.

Files changed:
- apps/desktop/src/main/ipc/reconcile-query.ts (new — pure helpers + model constant)
- apps/desktop/src/main/ipc/claude.ts (import from reconcile-query, use RECONCILE_MODEL)
- apps/desktop/tests/main/reconcile-query.test.ts (new — covers all pure helpers)
…uto-grow

- extractOpsArray: scan all `[` positions instead of using the first —
  prose containing square brackets before the actual JSON array would
  cause indexOf to pick the wrong start, failing a valid response;
  added a test covering that case
- ChatPanel scroll effect: restore the messageCount guard pattern
  (`if (messageCount === 0) return`) so messageCount is referenced in
  the effect body and no biome-ignore is required
- ChatPanel textarea: revert JS auto-grow effect (empty deps, only ran
  on mount so the textarea never resized while typing) back to the
  original CSS field-sizing-content approach; restore the deleted test
  that verified the CSS contract
@DaveHudson DaveHudson closed this May 1, 2026
@DaveHudson DaveHudson deleted the sandcastle/issue-234-review-changes-modal-slow branch May 1, 2026 14:40
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.

Review Changes Modal Slow

1 participant