Skip to content

Add grounded AI state explainer#6

Merged
danielmcauley merged 1 commit into
mainfrom
codex/ai-feature-mvp
Apr 6, 2026
Merged

Add grounded AI state explainer#6
danielmcauley merged 1 commit into
mainfrom
codex/ai-feature-mvp

Conversation

@danielmcauley
Copy link
Copy Markdown
Owner

Summary

  • add a cached AI-powered state explainer route with a grounded fallback summary
  • render the explainer on state pages with mode switching for overview, affordability, and economy
  • add Prisma storage, shared types, env docs, and tests for fallback generation and client behavior

Validation

  • npm run db:push
  • npm test
  • npm run lint
  • npm run build

@danielmcauley danielmcauley merged commit 7cfb09c into main Apr 6, 2026
3 checks passed
@danielmcauley danielmcauley deleted the codex/ai-feature-mvp branch April 6, 2026 00:38
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c8eaf06663

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +77 to +79
if (!aiEnabled || requestedModesRef.current[mode]) {
setIsLoading(false);
return;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Fetch mode-specific brief even when OpenAI is disabled

The effect exits immediately when aiEnabled is false, so selecting “affordability” or “economy” never loads mode-specific content. Because currentBrief falls back to the initial overview brief, the UI can show a non-overview button as active while still rendering overview text/citations. This breaks the advertised mode switching behavior.

Useful? React with 👍 / 👎.

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