fix(app): harden brief extraction and default to fastest model
- Default chatCollapsed to true so PromptIndex shows on load - Default AI model to claude-haiku-4.5 for faster responses - Fix extractMagazineSections to handle numbered/bullet bold lists without markdown headings (e.g. "1. **Title** — content") - Fix "For deeper coverage" stripping for bold-formatted text - Expand hasMagazine detection with more financial/news keywords Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
721e915a48
commit
10e12a329f
@@ -91,7 +91,7 @@ export function useContentPanel() {
|
||||
books.length > 0 || tvSeries.length > 0 || images.length > 0 || places.length > 0
|
||||
const hasMagazine = magazineSections.length >= 1 && (
|
||||
isNewsQuery(userQuery) || isNewsLikeResponse(text) ||
|
||||
/sentiment|bearish|bull case|macro|%|BTC|bitcoin|BIP|protocol|debate|what'?s happening/i.test(text) ||
|
||||
/sentiment|bearish|bull case|macro|%|BTC|bitcoin|BIP|protocol|debate|what'?s happening|ETF|inflow|trading at|key developments|price recovery|institutional|analyst watch|market cap/i.test(text) ||
|
||||
(!hasAnyOtherContent && !hasWebsites && magazineSections.length >= 2)
|
||||
)
|
||||
|
||||
@@ -239,7 +239,7 @@ export function useContentPanel() {
|
||||
books.length > 0 || tvSeries.length > 0 || images.length > 0 || places.length > 0
|
||||
const hasMagazine = magazineSections.length >= 1 && (
|
||||
isNewsQuery(userQuery) || isNewsLikeResponse(text) ||
|
||||
/sentiment|bearish|bull case|macro|%|BTC|bitcoin|BIP|protocol|debate|what'?s happening/i.test(text) ||
|
||||
/sentiment|bearish|bull case|macro|%|BTC|bitcoin|BIP|protocol|debate|what'?s happening|ETF|inflow|trading at|key developments|price recovery|institutional|analyst watch|market cap/i.test(text) ||
|
||||
(!hasAnyOtherInline && !hasWebsites && magazineSections.length >= 2)
|
||||
)
|
||||
const tabs = filterTabsByContext(userQuery, films.length > 0, songs.length > 0, podcasts.length > 0, books.length > 0, tvSeries.length > 0, images.length > 0, places.length > 0, hasNews, hasWebsites, hasMagazine)
|
||||
|
||||
Reference in New Issue
Block a user