fix: stop chat hang after misrouted themed article requests
Route themed page/article prompts to agent orchestration, reject them from portal direct chat, and finalize regular sessions to idle when a direct chat turn already completed. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -30,6 +30,8 @@ const OBVIOUS_AGENT_PATTERNS = [
|
||||
/MindSpace\/[^/\s]+\/public\/[^\s"'<>]+\.html/i,
|
||||
/(?:生成|创建|制作|做|写|设计|发布).{0,24}(?:H5|h5|HTML|html|网页|页面|活动页|宣传页|落地页|分享页)/u,
|
||||
/(?:H5|h5|HTML|html|网页|页面).{0,24}(?:生成|创建|制作|做|写|设计|发布)/u,
|
||||
/(?:写|做|生成|制作|设计).{0,16}主题(?:页面|文章)/u,
|
||||
/主题(?:页面|文章).{0,16}(?:写|做|生成|制作|设计)/u,
|
||||
];
|
||||
|
||||
const OBVIOUS_DIRECT_PATTERNS = [
|
||||
|
||||
Reference in New Issue
Block a user