Skip tool guidance, custom prompt, and Agent Skills for tool-incapable models
effectiveSystemPrompt now gates tool-usage guidelines, the user's custom system prompt, and active Agent Skills behind whether the selected model actually supports tools (ModelInfo.capabilities.tools). All three assume tool/file/web access and can easily blow past small context windows. Confirmed live against Apple Intelligence: the default system prompt dropped from 16,377 to ~250 tokens (well under the 4K on-device limit), fully resolving the context-exceeded error from the initial Phase 1 rollout. Verified end-to-end with a real successful generation in the app after the fix. Also: .gitignore now excludes *.profraw (stray code-coverage artifact picked up while testing). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -31,6 +31,9 @@ DerivedData/
|
||||
*.dSYM.zip
|
||||
*.dSYM
|
||||
|
||||
## Code coverage
|
||||
*.profraw
|
||||
|
||||
## Playgrounds
|
||||
timeline.xctimeline
|
||||
playground.xcworkspace
|
||||
|
||||
Reference in New Issue
Block a user