| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Note
Copilot was unable to run its full agentic suite in this review.
This PR aims to reduce unnecessary console UI re-rendering in the Harness by moving from reference-based comparisons to value-based comparisons and by shifting layout fields (X/Y/Width/Height) into component props.
Changes:
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file| File | Description |
|---|---|
| dotnet/samples/02-agents/Harness/Harness_Shared_Console/HarnessAppComponent.cs | Updates child layout assignment to use props and adjusts bottom padding/layout calculations. |
| dotnet/samples/02-agents/Harness/Harness_Shared_Console/Components/AgentStatus.cs | Switches positioning from component fields to props.Y. |
| dotnet/samples/02-agents/Harness/Harness_Shared_Console/Components/AgentModeAndHelp.cs | Uses props-based positioning and clears padded lines to match new height behavior. |
| dotnet/samples/02-agents/Harness/ConsoleReactiveFramework/ConsoleReactiveComponent.cs | Introduces BaseProps, moves layout to ConsoleReactiveProps, and changes re-render gating to value equality. |
| dotnet/samples/02-agents/Harness/ConsoleReactiveComponents/TopBottomRule.cs | Removes duplicated Width prop and updates child positioning via BaseProps. |
| dotnet/samples/02-agents/Harness/ConsoleReactiveComponents/TextScrollPanel.cs | Uses props for cursor movement/layout. |
| dotnet/samples/02-agents/Harness/ConsoleReactiveComponents/TextPanel.cs | Uses props for erasing/rendering and updates doc reference to props height. |
| dotnet/samples/02-agents/Harness/ConsoleReactiveComponents/TextInput.cs | Uses props for layout and text width. |
| dotnet/samples/02-agents/Harness/ConsoleReactiveComponents/ListSelection.cs | Uses props for layout when rendering title/options. |
dotnet/samples/02-agents/Harness/Harness_Shared_Console/HarnessAppComponent.cs:1
// Copyright (c) Microsoft. All rights reserved.
dotnet/samples/02-agents/Harness/ConsoleReactiveComponents/TopBottomRule.cs:1
// Copyright (c) Microsoft. All rights reserved.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Motivation and Context
We are using object comparison to decide whether to re-render, but this means unnecessary re-renders, so switching to value based comparison.
Description
Contribution Checklist