Skip to content

[$250] Add react-native-live-markdown to the Custom Agent Instructions input #96902

Description

@roryabraham

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

  1. Go to Account > Agents > Create agent, or edit an existing agent's instructions.
  2. Type Markdown syntax (e.g. *bold*, # heading, - list item) into the instructions input.
  3. Verify the formatting is rendered live in the input, matching the chat composer's behavior.
  4. Repeat for Workspace > Rules > Add agent rule > Write your own tab.
Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @Pujan92

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsOverdue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions