feat(chat): sync multi-role backend APIs

This commit is contained in:
2026-07-20 11:29:54 +08:00
parent 16b5c16e76
commit b6fdc912ae
84 changed files with 1488 additions and 439 deletions
@@ -235,7 +235,7 @@ function renderChatArea(
act(() => {
root.render(
<ChatArea
characterId="character_elio"
characterId="elio"
messages={messages}
isReplyingAI={false}
initialScrollReady={initialScrollReady}
@@ -127,7 +127,7 @@ describe("chat Tailwind components", () => {
it("renders ImageBubble openable and paywalled states", () => {
const openableHtml = renderToStaticMarkup(
<ImageBubble
characterId="character_elio"
characterId="elio"
messageId="message-1"
imageUrl="/chat-image.png"
onOpenImage={() => undefined}
@@ -135,7 +135,7 @@ describe("chat Tailwind components", () => {
);
const paywalledHtml = renderToStaticMarkup(
<ImageBubble
characterId="character_elio"
characterId="elio"
imageUrl="/locked-image.png"
imagePaywalled
/>,
@@ -73,6 +73,7 @@ export const ChatInputTextField = forwardRef<
onBlur={() => onFocusChange?.(false)}
placeholder={placeholder}
disabled={disabled}
maxLength={4000}
autoFocus={autoFocus}
rows={1}
aria-label="Message"