From 630c0470c7b03cd16224164e6596226700468cbd Mon Sep 17 00:00:00 2001
From: Laurent-Philippe Albou <24249870+lpalbou@users.noreply.github.com>
Date: Mon, 2 Nov 2026 05:46:12 +0100
Subject: [PATCH 1/3] checkpoint: every chat box on the shared panel-chat 0.7
ChatComposer (authoring assistant, Follow Up, code assistant, run waiting
input)
---
CHANGELOG.md | 6 ++
package.json | 4 +-
scripts/subflow_authoring_drive.mjs | 4 +-
src/components/CodeAssistantPanel.tsx | 43 +++------
src/components/FlowDocsAssistant.test.tsx | 2 +-
src/components/RunFlowModal.tsx | 89 +++++++-----------
.../assistant/AssistantComposer.tsx | 43 ++++-----
src/styles/index.css | 90 ++-----------------
src/styles/responsive.css | 7 --
9 files changed, 86 insertions(+), 202 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 75133f90..6423fffd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -30,6 +30,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
0.16.0.
### Changed
+- Every chat box uses the shared rounded multiline composer from `@abstractframework/panel-chat` 0.7.0:
+ the authoring assistant and Follow Up (Ctrl/Cmd+Enter sends, since each starts a run), the code
+ assistant and the run window's waiting input and Continue (Enter sends, Shift+Enter adds a line);
+ attachments through the + button or drag and drop. The dependency moves from panel-chat 0.5 to
+ 0.7, which also brings the 0.6 docs assistant wording and read-aloud behaviour; requires
+ `@abstractframework/ui-kit` ^0.9.8.
- The top bar's account is the kit's ONE account widget (operator ruling 2026-10-29: the docs button, Appearance,
About and the account are the same kit components in every app). Signed in, one button shows the person icon,
your name and the connection light; its menu holds Signed in as, Gateway, Copy user id and Disconnect. It replaces
diff --git a/package.json b/package.json
index cabe1f8d..6b0d675d 100644
--- a/package.json
+++ b/package.json
@@ -44,8 +44,8 @@
},
"dependencies": {
"@abstractframework/app-server": "^0.1.12",
- "@abstractframework/panel-chat": "^0.5.0",
- "@abstractframework/ui-kit": "^0.9.6",
+ "@abstractframework/panel-chat": "^0.7.0",
+ "@abstractframework/ui-kit": "^0.9.8",
"@monaco-editor/react": "^4.6.0",
"@tanstack/react-query": "^5.17.0",
"clsx": "^2.1.0",
diff --git a/scripts/subflow_authoring_drive.mjs b/scripts/subflow_authoring_drive.mjs
index 4b1961bd..c80cd35d 100644
--- a/scripts/subflow_authoring_drive.mjs
+++ b/scripts/subflow_authoring_drive.mjs
@@ -72,7 +72,7 @@ try {
}, REQUEST);
await new Promise((r) => setTimeout(r, 400));
await page.evaluate(() => {
- const send = Array.from(document.querySelectorAll('.assistant-actions-send button')).find((b) => b.textContent?.trim() === 'Send');
+ const send = document.querySelector('.assistant-input-area .pc-composer__send--compact');
send?.click();
});
note('request sent — waiting for the turn (up to 10 min)');
@@ -84,7 +84,7 @@ try {
while (Date.now() < deadline) {
await new Promise((r) => setTimeout(r, 5000));
const state = await page.evaluate(() => {
- const stop = Array.from(document.querySelectorAll('.assistant-actions-send button')).find((b) => /Stop/i.test(b.textContent || ''));
+ const stop = document.querySelector('.assistant-input-area .pc-composer__trailing .pc-workflow-chat__stop');
const pill = document.querySelector('.assistant-state-pill')?.textContent || '';
const lastMsg = Array.from(document.querySelectorAll('.assistant-message, .assistant-messages [class*=message]')).pop()?.textContent?.slice(0, 120) || '';
return { busy: Boolean(stop), pill, lastMsg };
diff --git a/src/components/CodeAssistantPanel.tsx b/src/components/CodeAssistantPanel.tsx
index e735c8b2..e3c335c0 100644
--- a/src/components/CodeAssistantPanel.tsx
+++ b/src/components/CodeAssistantPanel.tsx
@@ -1,5 +1,6 @@
import { useCallback, useEffect, useRef, useState } from 'react';
import { clipboardWriteOrThrow } from '../lib/copy_feedback';
+import { ChatComposer } from '@abstractframework/panel-chat';
import {
askCodeAssistant,
buildCodeAssistantPrompt,
@@ -155,44 +156,28 @@ export function CodeAssistantPanel({ context, contracts: givenContracts, onInser
))}
{busy ?
Thinking…
: null}
-
+ ) : null}
+ />
);
}
diff --git a/src/components/FlowDocsAssistant.test.tsx b/src/components/FlowDocsAssistant.test.tsx
index 0d4e89bb..41f755b2 100644
--- a/src/components/FlowDocsAssistant.test.tsx
+++ b/src/components/FlowDocsAssistant.test.tsx
@@ -65,7 +65,7 @@ describe('Flow Docs assistant (kit DocsAssistantDrawer)', () => {
expect(html).toContain('pc-chat-item--user');
expect(html).toContain('pc-chat-item--assistant');
expect(html).toContain('Run');
- expect(html).toContain('Grounded on AbstractFlow’s documentation (llms.txt) · docs-qa');
+ expect(html).toContain('Powered by AbstractFlow’s documentation.');
});
it('renders the shared drawer: icon-only New conversation, close, attach, keep-alive', () => {
diff --git a/src/components/RunFlowModal.tsx b/src/components/RunFlowModal.tsx
index 778b2be0..c3773076 100644
--- a/src/components/RunFlowModal.tsx
+++ b/src/components/RunFlowModal.tsx
@@ -10,6 +10,7 @@ import { LoadingLine } from './ReadState';
import { useQuery } from '@tanstack/react-query';
import toast from 'react-hot-toast';
import { randomId } from '@abstractframework/ui-kit';
+import { ChatComposer } from '@abstractframework/panel-chat';
import { copyWithFeedback } from '../lib/copy_feedback';
import { MEDIA_NEEDS_HTTPS, mediaAvailable } from '../lib/secure-context';
import { useFlowStore } from '../hooks/useFlow';
@@ -2148,6 +2149,7 @@ export function RunFlowModal({
const [showFollowUpModal, setShowFollowUpModal] = useState(false);
const [followUpDraft, setFollowUpDraft] = useState('');
const [followUpAttachments, setFollowUpAttachments] = useState([]);
+ const followUpFileInputRef = useRef(null);
const [followUpError, setFollowUpError] = useState(null);
const [followUpSubmitting, setFollowUpSubmitting] = useState(false);
const [followUpDragActive, setFollowUpDragActive] = useState(false);
@@ -7309,23 +7311,16 @@ export function RunFlowModal({
) : null}
{(waitingPayload?.allowFreeText ?? true) && (
-
)}
@@ -7423,24 +7418,17 @@ export function RunFlowModal({
{(waitingPayload?.allowFreeText ?? true) && (
-
)}
@@ -9057,14 +9045,23 @@ export function RunFlowModal({
-