googlechat: implement typing indicator via message editing

This commit is contained in:
iHildy
2026-01-24 20:16:14 +00:00
committed by Peter Steinberger
parent 70e7034a1c
commit c64184fcfa
4 changed files with 97 additions and 8 deletions

View File

@@ -87,6 +87,15 @@ export type GoogleChatAccountConfig = {
/** Per-action tool gating (default: true for all). */
actions?: GoogleChatActionConfig;
dm?: GoogleChatDmConfig;
/**
* Typing indicator mode (default: "message").
* - "none": No indicator
* - "message": Send "_<name> is typing..._" then edit with response
* - "reaction": React with 👀 to user message, remove on reply
* NOTE: Reaction mode requires user OAuth (not supported with service account auth).
* If configured, falls back to message mode with a warning.
*/
typingIndicator?: "none" | "message" | "reaction";
};
export type GoogleChatConfig = {

View File

@@ -321,6 +321,7 @@ export const GoogleChatAccountSchema = z
.strict()
.optional(),
dm: GoogleChatDmSchema.optional(),
typingIndicator: z.enum(["none", "message", "reaction"]).optional(),
})
.strict();