Skip to content

Conversation

BrunoQuaresma
Copy link
Collaborator

Closes #19363

Screenshot:

Screenshot 2025-08-25 at 11 02 25

Demo:

Screen.Recording.2025-08-22.at.16.00.23.mov

@BrunoQuaresma BrunoQuaresma requested a review from a team August 25, 2025 14:02
@BrunoQuaresma BrunoQuaresma self-assigned this Aug 25, 2025
@BrunoQuaresma BrunoQuaresma requested review from bcpeinhardt and a team and removed request for a team and bcpeinhardt August 25, 2025 14:03
Copy link
Member

@Parkreiner Parkreiner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just had a few small suggestions

level: "info",
output: line,
source_id: MockWorkspaceAgentLogSource.id,
created_at: new Date().toISOString(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be on the safe side, do we want to hard-code the date here, since new Date() would create a non-deterministic value for each story run?

Your task will be running in a few moments
</div>
</header>
<section className="flex-1 p-16 overflow-y-auto">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for the flex-1? I wouldn't expect a page-level component to need to worry about arbitrarily growing or shrinking

<h3 className="m-0 font-medium text-content-primary text-xl">
Starting your workspace
</h3>
<div className="text-content-secondary">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we swap this div for a p?


useEffect(() => {
if (listRef.current) {
listRef.current.scrollToItem(logs.length - 1, "end");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know what the scroll behavior is for the React Window component? As in, do you know if the scroll is instant, or if it does an animation?

Because if it's instant, we could swap in useLayoutEffect to reduce any risk of screen flickering

<h3 className="m-0 font-medium text-content-primary text-xl">
Running startup scripts
</h3>
<div className="text-content-secondary">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think we could use a p here, too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tasks: ui: show build logs and agent logs in task UI when workspace build is in progress
2 participants