feat(studio): render structured AI conversations
Test / Tests and coverage
Intrepid/Prometeu/Studio/pipeline/head This commit looks good

Add reusable UI2 conversation balloons, tool cards, native Markdown, copy actions and controlled streaming scroll. Preserve typed ACP tool updates and chat lifecycle, add Alt+Enter sending, update specifications and qualify the UI through desktop tests. Include the Pong asset cache.
This commit is contained in:
2026-11-23 19:12:26 +00:00
parent ae7d01aa99
commit 481c479427
25 changed files with 1080 additions and 40 deletions
@@ -7,9 +7,14 @@ import java.util.function.*;
/** Asynchronous project-owned agent port. Callbacks may arrive on worker threads. */
public interface AgentConnection {
enum State { DISCONNECTED, CONNECTING, CONNECTED, AUTHENTICATING, READY, FAILED, CLOSING, CLOSED }
enum Kind { TEXT, ACTIVITY }
enum Kind { TEXT, ACTIVITY, TOOL }
record Status(State state, String detail) { }
record Event(String sessionId, Kind kind, String text) { }
/** Null fields in a tool update mean unchanged; empty content explicitly clears it. */
record ToolUpdate(String id, String title, String category, String status,
String input, String output, String content) { }
record Event(String sessionId, Kind kind, String text, ToolUpdate tool) {
public Event(String sessionId, Kind kind, String text) { this(sessionId, kind, text, null); }
}
record Choice(String id, String name, String kind) { }
record Permission(String sessionId, String title, String details, List<Choice> choices) {
public Permission(String sessionId,String title,List<Choice> choices){this(sessionId,title,"",choices);}