Skip to content

Conversation

@continue-development-app
Copy link

@continue-development-app continue-development-app bot commented Dec 23, 2025

This PR adds a changelog entry for PR #9275.

  • Creates changelog.txt file
  • Adds entry: "Handle unhandled errors by exiting with non-zero code"

This agent session was co-authored by peter-parker and Continue.


Summary by cubic

Add a changelog entry for PR #9275 to document the new behavior for unhandled errors. It notes that the process now exits with a non-zero code, and also fixes a CLI build issue by moving error tracking to its own module and stabilizes macOS tests with longer timeouts.

Written for commit 6bb97c7. Summary will update automatically on new commits.

continue bot and others added 2 commits December 23, 2025 18:09
Move error tracking logic to separate module to break circular dependency
between index.ts and exit.ts. This was causing esbuild to generate invalid
code with misplaced await keywords.

- Create new errorTracking.ts module
- Move hasUnhandledError flag and related functions to errorTracking.ts
- Update imports in index.ts and exit.ts to use new module

Co-authored-by: nate <[email protected]>
Co-authored-by: peter-parker <[email protected]>
Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <[email protected]>
@continue-development-app continue-development-app bot requested a review from a team as a code owner December 23, 2025 18:13
@continue-development-app continue-development-app bot requested review from RomneyDa and removed request for a team December 23, 2025 18:13
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Dec 23, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

@continue
Copy link
Contributor

continue bot commented Dec 23, 2025

📚 Documentation Update

I've created PR #9279 with documentation updates for the error handling improvements.

The documentation includes:

  • CLI Overview: New section on error handling and exit codes with CI/CD examples
  • Troubleshooting Guide: Comprehensive debugging guidance for CLI errors

These changes ensure users understand how to properly use exit codes in automation workflows and how to debug issues when they occur.

cc: This addresses the documentation needs for PR #9275's error handling improvements.

@sestinj sestinj force-pushed the nate/exit-with-error-on-unhandled-exceptions branch from 0788183 to 635aa42 Compare December 23, 2025 18:20
Base automatically changed from nate/exit-with-error-on-unhandled-exceptions to main December 23, 2025 18:34
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Dec 23, 2025
…or handling

- Increase waitForNextRender timeout from 500ms to 1000ms for slower CI environments (especially macOS)
- Increase waitForCondition default timeout from 2000ms to 5000ms
- Add error throwing to waitForCondition when timeout is reached
- Update special characters test to use waitForCondition instead of waitForNextRender

This fixes failing tests on macOS Node 18:
- 'handles special characters in input without crashing [REMOTE MODE]'
- 'filters slash commands when typing /log [LOCAL MODE]'

Co-authored-by: peter-parker <[email protected]>
Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <[email protected]>
@continue-development-app
Copy link
Author

Fixed macOS test flakiness by increasing timeouts in test helpers. The failing tests should now pass.

Co-authored-by: peter-parker <[email protected]>
Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <[email protected]>
@continue-development-app
Copy link
Author

Summary of Changes

This PR fixes the failing macOS test on Node 18 by addressing test timing issues:

Changes Made:

  1. Increased timeout from 500ms to 1000ms to account for slower rendering on macOS CI environments
  2. Increased default timeout from 2000ms to 5000ms for more reliable test execution
  3. Added error throwing to when timeout is reached (was silently timing out before)
  4. Updated special characters test to use instead of for more robust waiting logic

Tests Fixed:

  • handles special characters in input without crashing [REMOTE MODE]
  • filters slash commands when typing /log [LOCAL MODE]

Root Cause:

The TUI (Terminal UI) rendering in the Ink framework takes longer on macOS CI runners than on other platforms. The tests were checking the frame content before the UI had finished rendering, causing them to see the frame border (╭────────────────────────────────────…) instead of the actual input content.

The fix ensures tests wait for the actual content to appear before making assertions.


Note: The PR Checks workflow may require approval from a maintainer to run since it includes test file changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

continue-agent size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant