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
@@ -32,6 +32,16 @@ class CodexAcpConnectionTest {
assertThrows(ExecutionException.class,()->await(c.prompt(second,"overlap").completion()));
await(c.cancel(first));assertEquals("cancelled",await(held.completion()));
}
@Test void toolIdentityAndPartialFieldsSurviveRealStdio()throws Exception {
var c=open("normal");String id=await(c.newSession());
var events=new CopyOnWriteArrayList<AgentConnection.Event>();c.events(events::add);
var turn=c.prompt(id,"tools");await(turn.accepted());await(turn.completion());
var tools=events.stream().filter(e->e.kind()==AgentConnection.Kind.TOOL).toList();assertEquals(3,tools.size());
var first=tools.get(0).tool();assertEquals("t1",first.id());assertEquals("config.json",first.input());
var partial=tools.get(1).tool();assertNull(partial.title());assertNull(partial.input());assertNull(partial.content());
assertEquals("in_progress",partial.status());
var last=tools.get(2).tool();assertEquals("configuration",last.content());assertEquals("result",last.output());
}
@Test void permissionIsNeverGrantedWithoutAnExplicitChoice()throws Exception {
var c=open("normal");String id=await(c.newSession());
var choice=new CompletableFuture<String>();c.permissions(p->{assertEquals(id,p.sessionId());return choice;});