fix(agent): address code review issues
- Add empty goal guard in parser (returns done instead of passthrough) - Replace `as any` casts in pipeline.ts with proper ActionDecision types - Add runtime type guards for untrusted LLM output in classifier - Add intent action to dynamic prompt so UI agent can fire intents Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -293,7 +293,8 @@ Scrolling:
|
||||
|
||||
App Control:
|
||||
{"action": "launch", "package": "com.app.name", "reason": "Open app"}
|
||||
{"action": "switch_app", "package": "com.app.name", "reason": "Switch app"}`;
|
||||
{"action": "switch_app", "package": "com.app.name", "reason": "Switch app"}
|
||||
{"action": "intent", "intentAction": "android.intent.action.VIEW", "uri": "tel:123", "reason": "Fire Android intent directly"}`;
|
||||
|
||||
// Multi-step actions (always useful)
|
||||
actions += `
|
||||
|
||||
Reference in New Issue
Block a user