Problem
Agent instructions (the "prompt") are stored and rendered as Markdown everywhere they're displayed — e.g. the agent's own Account > Profile > AI Prompt view and any chat messages the agent posts — but the inputs used to write those instructions are plain TextInput components with no live markdown formatting:
src/pages/settings/Agents/Fields/EditPromptPage.tsx (Edit agent > Write custom instructions)
src/pages/settings/Agents/AddAgentPage.tsx (Create agent)
src/pages/workspace/rules/AgentRules/AddAgentRuleWriteTab.tsx (Workspace > Rules > Add agent rule > Write your own)
This means the user gets no visual feedback (bold, headers, lists, etc.) while authoring instructions, even though what they type is later parsed and rendered as Markdown.
Solution
Swap the plain TextInput InputComponent in the pages above for @expensify/react-native-live-markdown's MarkdownTextInput, consistent with how the chat composer (Composer) already uses it, so formatting renders live as the admin/user types their instructions.
Manual Test Steps
- Go to Account > Agents > Create agent, or edit an existing agent's instructions.
- Type Markdown syntax (e.g.
*bold*, # heading, - list item) into the instructions input.
- Verify the formatting is rendered live in the input, matching the chat composer's behavior.
- Repeat for Workspace > Rules > Add agent rule > Write your own tab.
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Pujan92
Problem
Agent instructions (the "prompt") are stored and rendered as Markdown everywhere they're displayed — e.g. the agent's own
Account > Profile > AI Promptview and any chat messages the agent posts — but the inputs used to write those instructions are plainTextInputcomponents with no live markdown formatting:src/pages/settings/Agents/Fields/EditPromptPage.tsx(Edit agent > Write custom instructions)src/pages/settings/Agents/AddAgentPage.tsx(Create agent)src/pages/workspace/rules/AgentRules/AddAgentRuleWriteTab.tsx(Workspace > Rules > Add agent rule > Write your own)This means the user gets no visual feedback (bold, headers, lists, etc.) while authoring instructions, even though what they type is later parsed and rendered as Markdown.
Solution
Swap the plain
TextInputInputComponentin the pages above for@expensify/react-native-live-markdown'sMarkdownTextInput, consistent with how the chat composer (Composer) already uses it, so formatting renders live as the admin/user types their instructions.Manual Test Steps
*bold*,# heading,- list item) into the instructions input.Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Pujan92