chore: record user actions in the session log (#798)

This commit is contained in:
Pavel Feldman
2025-07-30 18:26:13 -07:00
committed by GitHub
parent 4df162aff5
commit f600234897
13 changed files with 536 additions and 54 deletions

View File

@@ -225,7 +225,7 @@ export function formatOutput(output: string): string[] {
}
function parseResponse(response: any) {
const text = (response as any).content[0].text;
const text = response.content[0].text;
const sections = parseSections(text);
const result = sections.get('Result');
@@ -237,6 +237,7 @@ function parseResponse(response: any) {
const downloads = sections.get('Downloads');
const codeNoFrame = code?.replace(/^```js\n/, '').replace(/\n```$/, '');
const isError = response.isError;
const attachments = response.content.slice(1);
return {
result,
@@ -247,6 +248,7 @@ function parseResponse(response: any) {
modalState,
downloads,
isError,
attachments,
};
}