Skip to content

fix: remove insight_goal_id references after column drop#746

Merged
bokelley merged 1 commit into
mainfrom
bokelley/fix-fly-errors
Jan 13, 2026
Merged

fix: remove insight_goal_id references after column drop#746
bokelley merged 1 commit into
mainfrom
bokelley/fix-fly-errors

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

  • Fixes production database errors in outreach scheduler caused by code referencing a dropped column
  • Migration 166 dropped insight_goal_id from member_outreach but code still referenced it
  • Removed references from TypeScript interfaces and SQL queries

Test plan

  • Build passes (npm run build)
  • TypeCheck passes (npm run typecheck)
  • All tests pass (pre-commit hook)
  • App starts and runs in Docker
  • Dev login and member profile page load correctly

🤖 Generated with Claude Code

Migration 166 dropped the insight_goal_id column from member_outreach
but the code still referenced it, causing database errors in production
outreach scheduler.

Removed from:
- MemberOutreach interface
- CreateOutreachInput interface
- recordOutreach SQL INSERT query
- proactive-outreach.ts recordOutreach call

Goal tracking now happens via user_goal_history table instead.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit 74dcbe2 into main Jan 13, 2026
6 checks passed
bokelley added a commit that referenced this pull request Jan 13, 2026
Main branch already has 165_fix_outreach_goal_stats.sql from PR #746.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
bokelley added a commit that referenced this pull request Jan 13, 2026
Main branch now has 166_drop_insight_goals.sql from PR #746.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
bokelley added a commit that referenced this pull request Jan 13, 2026
* feat: add Addie escalation and learning capture tools

Add tools for Addie to escalate requests she cannot fulfill and capture
valuable insights from conversations:

- New `escalate_to_admin` tool for capability gaps and requests needing
  human action (creates tracked escalations, flags threads, notifies admins)
- New `capture_learning` tool to flag user insights for synthesis
- Admin API endpoints for managing escalations (list, view, update status)
- System prompt updates to prevent Addie from promising actions without tools
- Thread filtering for multi-turn only conversations in admin UI

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: rename escalations migration to version 166

Main branch already has 165_fix_outreach_goal_stats.sql from PR #746.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: rename escalations migration to version 167

Main branch now has 166_drop_insight_goals.sql from PR #746.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
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