Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

➡️ style: Flush the In-Flight Steer Stack to the Composer Edge (#14854)

Danny Avila58f0ab7f6244
diff --git a/client/src/components/Chat/Input/InFlightSteers.tsx b/client/src/components/Chat/Input/InFlightSteers.tsx
index c5e374b9d6..31502e4017 100644
--- a/client/src/components/Chat/Input/InFlightSteers.tsx
+++ b/client/src/components/Chat/Input/InFlightSteers.tsx
@@ -636,11 +636,17 @@ const InFlightSteers = memo(function InFlightSteers({
aria-label={localize('com_ui_steer_in_flight')}
data-testid="in-flight-steers"
/* Floats above the composer over the bottom of the thread instead of
- * displacing it, so scrolling up reveals the messages behind. Capped: a
- * steer runs to 16k chars and a run takes up to 10 of them; unbounded it
- * would cover the whole thread. pointer-events-none lets wheeling over
- * the gaps reach those messages (each bubble opts back in). */
- className="pointer-events-none absolute inset-x-0 bottom-full mx-auto flex max-h-[35vh] max-w-3xl flex-col items-end gap-2 overflow-y-auto p-2"
+ * displacing it, so scrolling up reveals the messages behind. Height is
+ * capped: a steer runs to 16k chars and a run takes up to 10 of them;
+ * unbounded it would cover the whole thread. Width is not — `inset-x-0`
+ * takes the width of the composer the steer was typed into, so the stack
+ * ends where that composer ends at every desktop width (`xl:max-w-4xl`,
+ * maximized chat space) instead of drifting inboard against a second,
+ * narrower cap of its own; `p-2` then lands the send-now arrow in the
+ * same column as the composer's own send button (`mr-2` + border).
+ * pointer-events-none lets wheeling over the gaps reach those messages
+ * (each bubble opts back in). */
+ className="pointer-events-none absolute inset-x-0 bottom-full flex max-h-[35vh] flex-col items-end gap-2 overflow-y-auto p-2"
>
{inFlight.map((steer) => (
<InFlightSteer
diff --git a/client/src/components/Chat/Input/__tests__/InFlightSteers.test.tsx b/client/src/components/Chat/Input/__tests__/InFlightSteers.test.tsx
index 30486fd3e7..9be37aefe9 100644
--- a/client/src/components/Chat/Input/__tests__/InFlightSteers.test.tsx
+++ b/client/src/components/Chat/Input/__tests__/InFlightSteers.test.tsx
@@ -672,6 +672,18 @@ describe('InFlightSteers', () => {
expect(screen.getByText('**bold** steer')).toBeInTheDocument();
});
+ it('hugs the composer edge instead of a narrower cap of its own', () => {
+ renderSteers([{ steerId: 's1', text: 'flush right', status: 'pending', createdAt: 1 }]);
+ const stack = screen.getByTestId('in-flight-steers');
+ // `inset-x-0` inherits the composer's width, so the stack ends where the
+ // composer ends at every desktop width. A cap of its own (the old
+ // `max-w-3xl`) drifts inboard the moment the composer is wider —
+ // `xl:max-w-4xl`, or maximized chat space.
+ expect(stack.className).toContain('inset-x-0');
+ expect(stack.className).toContain('items-end');
+ expect(stack.className).not.toMatch(/\bmax-w-/);
+ });
+
it('floats the stack over the thread instead of displacing it', () => {
// Anchored above the composer and pulled out of flow so the messages keep
// their full height and slide behind it when the user scrolls up.