fix(agents): unwrap read_agent_context DTO content (#140)
Le contexte projet d'un agent s'affichait "[object Object]" et se
vidait à la réouverture du panneau : read_agent_context renvoie déjà
{content} côté backend, mais les gateways front traitaient la réponse
comme une string brute. Les deux gateways (Tauri + HTTP) unwrap
maintenant .content ; type AgentContextDocument ajouté au domaine.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@ -1277,6 +1277,11 @@ export interface Agent {
|
||||
effort?: EffortSelection;
|
||||
}
|
||||
|
||||
/** Response DTO returned by `read_agent_context`; adapters unwrap `content`. */
|
||||
export interface AgentContextDocument {
|
||||
content: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A terminal/PTY session as returned by the backend (mirror of
|
||||
* `TerminalSessionDto`, camelCase wire format). Surfaced by `changeAgentProfile`
|
||||
|
||||
Reference in New Issue
Block a user