feat: support image prompts across IM channels

This commit is contained in:
xmanrui 2026-08-19 02:56:14 +08:00
parent 99a877c640
commit 65c842c045
40 changed files with 3806 additions and 274 deletions

View file

@ -33,6 +33,7 @@ export async function askInWorkspaceSession({
state,
key,
text,
content,
createOptions,
existsOptions,
askOptions,
@ -48,7 +49,7 @@ export async function askInWorkspaceSession({
}
return {
sessionId,
answer: await session.ask(text, askOptions),
answer: await session.ask(content ?? text, askOptions),
};
} catch (error) {
if (error?.code !== WORKSPACE_SESSION_STALE) throw error;