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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch!

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That is true

<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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure!


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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is instant, and we can move to use useLayoutEffect for sure.

<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

@BrunoQuaresma BrunoQuaresma merged commit 59525f8 into main Aug 26, 2025
32 checks passed
@BrunoQuaresma BrunoQuaresma deleted the bq/handle-agent-being-ready-for-tasks branch August 26, 2025 15:45
@github-actions github-actions bot locked and limited conversation to collaborators Aug 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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