46edd8d749
* claim: #8220 * Agent chat: Custom instructions in Preferences, added to the system note (#8220) Preferences > AI gets a multi-line Custom instructions field, saved with the other AI preferences (agent_instructions, kept by page resets like other user-written text). The chat adds the text after its own system note when a session starts, by the routes #9811 set up: ACP session/new (the Claude adapter's _meta key, the standard systemPrompt field, the Antigravity key) and the system message or field of every API protocol. Connect and New chat set it, so an edit applies from the next chat and never changes the one running. Blank text adds nothing; at most 4000 characters are kept, in the field, over ui.agent_chat and from a hand- edited settings file. ui.agent_chat takes and reports `instructions`. * Custom instructions: typing in the field stays in the field The text area did not report itself to Preferences search as a key sink, so with the field focused, search took the typed characters and moved focus away. The field now notes the sink while it has focus, like the other preference fields, and the #8220 test types into it. --------- Co-authored-by: MateuszSychXpl <151755914+MateuszSychXpl@users.noreply.github.com>