feat(agents,backends,conversations,frontends,ui): progress thinking is told apart by its agent, raycast reasoning stays collapsed, read_conversation keeps progress
This commit is contained in:
1 parent
13873f857b
commit
120985deab
18 files changed
+374
-110
No files matched your search
@@ -352,6 +352,8 @@ class Rows(State):
|
||||
for b in await self.bindings(conv)
|
||||
]
|
||||
live = self._pool.get(conv.external_id)
|
||||
agent = self._agents.get(conv.agent_name)
|
||||
out["thinking_is_progress"] = agent is not None and agent.thinking_is_progress
|
||||
out["live"] = live is not None
|
||||
out["busy"] = live.busy if live is not None else False
|
||||
runner = self._runners.get(cast("int", conv.id))
|
||||
@@ -466,7 +468,13 @@ class Rows(State):
|
||||
return marked
|
||||
|
||||
async def read(self, conv: Conversation, *, window: int | None = None) -> str:
|
||||
return render_messages(await self.history(conv), window=window)
|
||||
return render_messages(
|
||||
await self.history(conv),
|
||||
thinking_is_progress=self._claude_agent(
|
||||
conv.agent_name
|
||||
).thinking_is_progress,
|
||||
window=window,
|
||||
)
|
||||
|
||||
async def history(self, conv: Conversation) -> list[dict[str, Any]]:
|
||||
if conv.session_id is None:
|
||||
|
||||
Reference in new issue
Block a user