-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Show offline banner during argent init #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
latekvo
wants to merge
15
commits into
main
Choose a base branch
from
offline-init-banner
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d30c374
show offline banner during argent init
latekvo ccd3123
soften offline skills wording to account for npx cache
latekvo 0139551
hide offline skills warning when npx skills is already cached
latekvo d0a7acb
extract offline banner into its own helper
latekvo 8360e4c
drop redundant manual-option hint from offline bullet
latekvo fc3689f
Merge branch 'main' into offline-init-banner
latekvo 55ba8c5
harden isOnline: unref timer, clear on resolve, guard URL parse
latekvo aa17bd1
test(mcp/cli): mock network probes; harden offline skills install
latekvo 5930fbe
refactor: replace top-level offline banner with contextual skills war…
latekvo 90b747a
revert: remove unrelated getLatestVersion stdio/timeout change
latekvo 2252a8a
refactor: build skills args then prepend --no-install when offline
latekvo 3f03ddd
cleanup: remove initialValue override and fix stale test comment
latekvo 2640d63
chore: unify probe timeout to 8s and fix prettier
latekvo 68f18ee
add timeout to getLatestVersion and lower probe timeout to 3s
latekvo 67287b0
skip skills prompt when offline, add timeout to getLatestVersion
latekvo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is an acceptable wait time for the edge case where someone is offline and is still running
argent init.From my measurements:
isOnline()probes DNS, for me it takes100-200msevery timeisSkillsCliAvailable()probes local fs via npm, takes0.5-1sgetLatestVersion()talks over https, on super super slow connections it could hit the wall, but it doesn't actually regress any features, only defers the available update to a later date. Nothing else happens.