Fix home-folder chat stall during instruction discovery - #182
Merged
Merged
Conversation
AetherAI3
force-pushed
the
fix/cli-http-error-timeout
branch
from
September 27, 2026 21:02
e82476b to
ab70e07
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AGENTS.mddiscovery by directory count, entry count, and elapsed time before a chat turn starts.Reproduction and validation
The published 0.3.2 CLI launched from
C:\Users\lilbeechoedjust testing reply 1and produced no pulse or response after more than 30 seconds. The same CLI in a small project directory returned a terminal response promptly. The delay was the synchronous nested instruction walk before the network request.With this branch, discovery from the same home folder completes in about 60 ms with an explicit incomplete marker. A built 0.4.0 CLI launched from that folder displays the warning and reaches a terminal cloud response in about 1.7 seconds with a synthetic invalid key; this test makes no model call. Direct project and user instructions remain loaded. A valid account can then proceed through the normal hosted turn.
Checks:
npm run build; 78 focused tests across chat, instruction resolver, and skill host loop passed with the package's--test-isolation=nonesetting. The new wide-directory test exercises warning and local refusal.The synchronous
readdirSyncof one directory remains a single filesystem operation that cannot be preempted by this budget; the result is checked before sorting or statting its entries.