Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): reveal expanded work rows hidden behind the composer #21968

Mergedln-bodicherla(GitHub profile, opens in a new tab)merged 20 commits intomain fromrefs/pull/21968/headmerged by juliusmarminge View on GitHub

Showing 9 changed files with 3 additions and 1 deletion (loading 8).

x
0 of 9 viewed, 9 left
3 additions and 1 deletionapps/web/src/components/chat/CommandOutputPanel.tsxModified
View file
@@ -7,7 +7,7 @@
import { useServerConfigs } from "../../state/entities";
import { orchestrationEnvironment } from "../../state/orchestration";
import { useEnvironmentQuery } from "../../state/query";
-import type { TurnItemSource } from "./timelineRowContext";
+import { useInitialOutputReady, type TurnItemSource } from "./timelineRowContext";
​
const FOLLOW_SLACK_PX = 8;
​
@@ -24,6 +24,7 @@
* It subscribes only while mounted, so collapsed rows and other threads receive nothing.
*/
export function CommandOutputPanel(props: {
+ readonly onInitialOutputReady?: (() => void) | undefined;
readonly environmentId: EnvironmentId;
readonly threadId: ThreadId;
readonly itemId: TurnItemId;
@@ -35,6 +36,7 @@
? props.source(input)
: orchestrationEnvironment.v2.commandOutput({ environmentId: props.environmentId, input }),
);
+ useInitialOutputReady(data === null && !error, props.onInitialOutputReady);
const scrollRef = useRef<HTMLDivElement>(null);
const followRef = useRef(true);
const text = data?.output.text ?? "";
apps/web/src/components/chat/MessagesTimeline.browser.test.tsxModified
View file