You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: XML content sometimes disappears in the TUI terminal (and isn’t rendered in shared sessions) #3535
(xml exists in output but considered as html (output content is not quoted in html version)
OpenCode version
0.15.23
Steps to reproduce
Without subagent
Write in opencode input, see xml will disappear
You are an agent used to receive unmodified prompt
## Output- Your output is xml described below.
- Then return result in the following valid xml format
```xml
<resultprompt="{user prompt}"base64promp="{prompt in base64}"who="{who}" />
```
Create result based on prompt "Hi bibro"
With subagent
---description: Call-me agent used for testing purposes, received raw unmodified user promptmode: subagent---
You are an agent used to receive unmodified prompt
## Output- Your output is xml described below.
- Then return result in the following valid xml format
```xml
<resultprompt="{user prompt}"base64promp="{prompt in base64}"who="{who}" />
```
Reproduce
Open opencode
@call-me hi bro
Then shift - right, see resulting xml sometimes will dissapear.
This issue might be a duplicate of existing issues. Please check:
opentui: can't read subagent session #3338: Issues with navigating to subagent sessions using shift+right keybinding - directly relates to the navigation aspect mentioned in this issue
Subagent results not always properly handled #3173: Subagent results not always properly handled - subagent output not being visible in parent session, requires navigating to child session to see content
We are about to ship a full rewrite of the tui that will have a different markdown renderer, may be better to address this once that ships unless XML is a big blocker for u
Activity
istarkov commentedon Oct 29, 2025
Video file
https://github.com/user-attachments/assets/6702b3ac-a0ad-444b-9ec5-2c4d0f8f0ad4
github-actions commentedon Oct 29, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
istarkov commentedon Oct 29, 2025
Fast fix idea is to use +- same regexp which is used for stripping html xml content in ts code but instead of deleting it
<[A-Za-z!/](?:"[^"]*"|'[^']*'|[^'"<>])*?>, replace<>on something like{{LT}}{{GT}}regexp playground
https://regex101.com/r/sf64K8/1
I will do if it's ok
rekram1-node commentedon Oct 29, 2025
We are about to ship a full rewrite of the tui that will have a different markdown renderer, may be better to address this once that ships unless XML is a big blocker for u
istarkov commentedon Oct 29, 2025
https://github.com/sst/opencode/tree/opentui ? here?
rekram1-node commentedon Oct 29, 2025
@istarkov yes! I bet this issue still exists there too tbh but if you were interested in making a fix, branching off that would probably be best.
One note is the markdown renderer is about to be updated today or tmr probs so id hold off until that gets merged
istarkov commentedon Oct 29, 2025
Thank you! Amazing tool!