Skip to content

fix(ci): address failing typechecker#1756

Open
Hweinstock wants to merge 12 commits into
aws:refactorfrom
Hweinstock:fix/typecheck
Open

fix(ci): address failing typechecker#1756
Hweinstock wants to merge 12 commits into
aws:refactorfrom
Hweinstock:fix/typecheck

Conversation

@Hweinstock

@Hweinstock Hweinstock commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Built on #1748.

Problem

The typechecker is failing, see #1748 as an example.

The issues are isolated to the TUI code, and mostly resolve around missing undefined checks.

Solution

  • add safe assertions where its simple to see that undefined is not possible.
  • zip column up with columnWidths to avoid managing two seperate arrays.
  • use local variables with undefined guards for better type narrowing in TS.

Testing

bun run typecheck.
Also passing in CI.

@github-actions github-actions Bot added agentcore-harness-reviewing AgentCore Harness review in progress and removed agentcore-harness-reviewing AgentCore Harness review in progress labels Jul 14, 2026
@codecov-commenter

codecov-commenter commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 70.58824% with 5 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (refactor@b5e68f8). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/components/ui/markdown/Markdown.tsx 20.00% 4 Missing ⚠️
src/components/ui/data-table/DataTable.tsx 91.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             refactor    #1756   +/-   ##
===========================================
  Coverage            ?   93.59%           
===========================================
  Files               ?      115           
  Lines               ?     6683           
  Branches            ?        0           
===========================================
  Hits                ?     6255           
  Misses              ?      428           
  Partials            ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Hweinstock

Copy link
Copy Markdown
Contributor Author

CodeCov is failing because it can't find the base commit since earlier PR that adds it is not merged.

@nborges-aws nborges-aws changed the title fix(ci): address failing typechcker fix(ci): address failing typechecker Jul 14, 2026
nborges-aws
nborges-aws previously approved these changes Jul 14, 2026
if (col.width) return col.width;
// default the width of each column
const columnsWithWidths = columns.map((col) => {
if (col.width !== undefined) return { ...col, width: col.width };

@Hweinstock Hweinstock Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

we explicitly check undefined to fix the edge case where the width is explicitly set to 0

@Hweinstock Hweinstock marked this pull request as ready for review July 15, 2026 23:56
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.

3 participants