René's URL Explorer Experiment


Title: feat(cli): follow a run, wait for one, and tail the log by waleedlatif1 · Pull Request #6813 · simstudioai/sim · GitHub

Open Graph Title: feat(cli): follow a run, wait for one, and tail the log by waleedlatif1 · Pull Request #6813 · simstudioai/sim

X Title: feat(cli): follow a run, wait for one, and tail the log by waleedlatif1 · Pull Request #6813 · simstudioai/sim

Description: Summary Three commands the CLI was missing. Every v2 operation was already reachable — these are capabilities that did not exist on either side. sim workflows run --follow renders the SSE the execute route already emits. A sync run previously printed nothing until it finished, so a multi-minute agent run left the terminal blank. It rides on the generated run leaf rather than a sibling command (same operation, one different response encoding) and delegates to the handler it replaced, so every non-follow invocation still runs the generated path unchanged. Answer text, thinking and tool calls go to stderr; only the final envelope reaches stdout, so --follow > out.json still yields the result. --include-thinking/--include-tool-calls send X-Sim-Stream-Protocol: agent-events-v1 — sent only when asked, because negotiating also switches answer text to live chunks the server may retract with chunk_reset. sim workflows runs wait --workflow closes the loop --async opens; previously CI had to hand-roll a poll. Terminal is completed|failed|cancelled — redacting is deliberately not terminal, since a run whose output is still being scrubbed is not yet one you can read. A time pause keeps polling (the server resumes it); a human pause stops and prints the runs resume command rather than burning the bound and reporting a timeout for a run doing exactly what it was asked to. Exit codes 0/1/2/3/4 keep cancelled and paused from reading as failure. sim logs follow tails runs as they arrive. Dedup keys on run id, not timestamp: a schedule fan-out starts many runs in the same millisecond, so a timestamp watermark either drops the siblings or reprints them. Naming notes: the bound is --wait-timeout, not --timeout, because SIM_TIMEOUT_SECONDS already bounds a single request and two knobs of the same name hide each other. logs follow is a sibling rather than logs list --follow because logs list is generated from the contract and --follow has no wire counterpart — its paging is the inverse of the contract's. Type of Change New feature Testing Tested manually against staging: --follow returns the final envelope on stdout with commentary on stderr and refuses --async; runs wait exits 0 on a completed run and rejects a bad bound; logs follow emits valid JSONL and exits 0 on Ctrl-C. Suite is 423 passed / 1 skipped (was 370) across 53 new tests. Every new assertion was proven red by mutating the source and restored — 36 mutations in total, and two of them initially survived, exposing weak tests that were then strengthened. lint, type-check, build, check:cli-docs and all 29 audits pass. One honest limitation, stated in --follow's own help: the SSE final frame carries only success and output, so the streamed result omits the runId, status and timings a non-streaming run returns. There is no X-Run-Id on that response to recover them from. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Three commands the CLI was missing. Every v2 operation was already reachable — these are capabilities that did not exist on either side. sim workflows run <id> --follow renders the S...

X Description: Summary Three commands the CLI was missing. Every v2 operation was already reachable — these are capabilities that did not exist on either side. sim workflows run &lt;id&gt; --follow rende...

Opengraph URL: https://github.com/simstudioai/sim/pull/6813

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:bbb07525-5bcd-b8ef-115f-519d63ecb7b1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id88DC:3E7424:938A2F:D138C4:6AFB51CE
html-safe-nonce75e23817fdf7d7ba501cd6775ff8df1a5b57414f910a76a0e5652486cd8d85a8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OERDOjNFNzQyNDo5MzhBMkY6RDEzOEM0OjZBRkI1MUNFIiwidmlzaXRvcl9pZCI6IjcyNjU2OTk4NDg5MTE1NDA2ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0ee7f6a6595c46749d49d15dd551d293ec913cff46bdc5675f14ac6a3840c9c8
hovercard-subject-tagpull_request:4306285008
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/6813/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Three commands the CLI was missing. Every v2 operation was already reachable — these are capabilities that did not exist on either side. sim workflows run <id> --follow renders the S...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6813/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6813%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6813%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/6813/files
Reloadhttps://github.com/simstudioai/sim/pull/6813/files
Reloadhttps://github.com/simstudioai/sim/pull/6813/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
feat/cli-follow-waithttps://github.com/simstudioai/sim/tree/feat/cli-follow-wait
Conversation 20 https://github.com/simstudioai/sim/pull/6813
Commits 4 https://github.com/simstudioai/sim/pull/6813/commits
Checks 30 https://github.com/simstudioai/sim/pull/6813/checks
Files changed https://github.com/simstudioai/sim/pull/6813/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6813/files
feat(cli): follow a run, wait for one, and tail the log https://github.com/simstudioai/sim/pull/6813/files#top
Show all changes 4 commits https://github.com/simstudioai/sim/pull/6813/files
aa0a1fe feat(cli): follow a run, wait for one, and tail the log waleedlatif1 Aug 18, 2026 https://github.com/simstudioai/sim/pull/6813/commits/aa0a1fe104865258da1eddf030b10f92925ed744
218eca1 fix(cli): disclose a truncated burst, and clear a stale retry notice waleedlatif1 Aug 18, 2026 https://github.com/simstudioai/sim/pull/6813/commits/218eca119feba9da2fa75e250f8ba62fe2ce2be0
f677acb test(cli): pin that a mixed page is the watermark, not a truncation waleedlatif1 Aug 18, 2026 https://github.com/simstudioai/sim/pull/6813/commits/f677acb17b84e83e38d55dd1eddddfe19c86cb7f
0d60b70 fix(cli): say when the requested backlog was larger than a page holds waleedlatif1 Aug 18, 2026 https://github.com/simstudioai/sim/pull/6813/commits/0d60b708a3d79119b2947ef246c6879e0a2e6844
Clear filters https://github.com/simstudioai/sim/pull/6813/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6813/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6813/files
logs.mdx https://github.com/simstudioai/sim/pull/6813/files#diff-955eba1943c581b1dd449ead87b82920712ba38c5b6ed7de89978241a7a28167
reference.mdx https://github.com/simstudioai/sim/pull/6813/files#diff-6d62ac33f713efb75155dd81dea38d4a65cc2450dbc7a9af1c2a85c1122da399
workflows.mdx https://github.com/simstudioai/sim/pull/6813/files#diff-b9797fdee1311b575086438c82edb601e705fd6a56347f95597cb06e3919ea1d
index.ts https://github.com/simstudioai/sim/pull/6813/files#diff-2e6d263e2d4ce8770f44316c771143a9962d41df3c733c8027b56deea8234045
logs-follow.test.ts https://github.com/simstudioai/sim/pull/6813/files#diff-a2f267e45a5e43c2b90c039237ec18db7081aa2fa8d5ad9f910b4c29151a9442
logs-follow.ts https://github.com/simstudioai/sim/pull/6813/files#diff-080c7f52060ca0d598bc5488a5b26487cb7633b0fe1399738a6d8d2ac6b24515
workflow-run-follow.test.ts https://github.com/simstudioai/sim/pull/6813/files#diff-0b7191cbd90b4d41f901db7bec9d7483fb8f7b04f24f46abbb1f7b2e0709869c
workflow-run-follow.ts https://github.com/simstudioai/sim/pull/6813/files#diff-5795113268fa862ce81100d28510ba1b686a0118586407ceb5c7e569ab4ff5a5
workflow-run-wait.test.ts https://github.com/simstudioai/sim/pull/6813/files#diff-5479cfd4c2a6c50a1669eea55f9d35b45b2ddd17cc440e7918c0e7b380305ed6
workflow-run-wait.ts https://github.com/simstudioai/sim/pull/6813/files#diff-17a7bb1c924fc5ba70ce25dd73b2fcc055d7bac871dd1b987b32319627b3b05a
commands.ts https://github.com/simstudioai/sim/pull/6813/files#diff-5b27c3986f1d8efb7c666a86dc02bf70fe6c52509f71fba2df57e706b9bc729d
apps/docs/content/docs/en/cli/logs.mdxhttps://github.com/simstudioai/sim/pull/6813/files#diff-955eba1943c581b1dd449ead87b82920712ba38c5b6ed7de89978241a7a28167
View file https://github.com/simstudioai/sim/blob/0d60b708a3d79119b2947ef246c6879e0a2e6844/apps/docs/content/docs/en/cli/logs.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6813/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6813/files#diff-955eba1943c581b1dd449ead87b82920712ba38c5b6ed7de89978241a7a28167
apps/docs/content/docs/en/cli/reference.mdxhttps://github.com/simstudioai/sim/pull/6813/files#diff-6d62ac33f713efb75155dd81dea38d4a65cc2450dbc7a9af1c2a85c1122da399
View file https://github.com/simstudioai/sim/blob/0d60b708a3d79119b2947ef246c6879e0a2e6844/apps/docs/content/docs/en/cli/reference.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6813/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6813/files#diff-6d62ac33f713efb75155dd81dea38d4a65cc2450dbc7a9af1c2a85c1122da399
https://github.com/simstudioai/sim/pull/6813/files#diff-6d62ac33f713efb75155dd81dea38d4a65cc2450dbc7a9af1c2a85c1122da399
https://github.com/simstudioai/sim/pull/6813/files#diff-6d62ac33f713efb75155dd81dea38d4a65cc2450dbc7a9af1c2a85c1122da399
https://github.com/simstudioai/sim/pull/6813/files#diff-6d62ac33f713efb75155dd81dea38d4a65cc2450dbc7a9af1c2a85c1122da399
https://github.com/simstudioai/sim/pull/6813/files#diff-6d62ac33f713efb75155dd81dea38d4a65cc2450dbc7a9af1c2a85c1122da399
https://github.com/simstudioai/sim/pull/6813/files#diff-6d62ac33f713efb75155dd81dea38d4a65cc2450dbc7a9af1c2a85c1122da399
apps/docs/content/docs/en/cli/workflows.mdxhttps://github.com/simstudioai/sim/pull/6813/files#diff-b9797fdee1311b575086438c82edb601e705fd6a56347f95597cb06e3919ea1d
View file https://github.com/simstudioai/sim/blob/0d60b708a3d79119b2947ef246c6879e0a2e6844/apps/docs/content/docs/en/cli/workflows.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6813/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6813/files#diff-b9797fdee1311b575086438c82edb601e705fd6a56347f95597cb06e3919ea1d
https://github.com/simstudioai/sim/pull/6813/files#diff-b9797fdee1311b575086438c82edb601e705fd6a56347f95597cb06e3919ea1d
https://github.com/simstudioai/sim/pull/6813/files#diff-b9797fdee1311b575086438c82edb601e705fd6a56347f95597cb06e3919ea1d
https://github.com/simstudioai/sim/pull/6813/files#diff-b9797fdee1311b575086438c82edb601e705fd6a56347f95597cb06e3919ea1d
packages/sim-cli/src/commands/protocol/index.tshttps://github.com/simstudioai/sim/pull/6813/files#diff-2e6d263e2d4ce8770f44316c771143a9962d41df3c733c8027b56deea8234045
View file https://github.com/simstudioai/sim/blob/0d60b708a3d79119b2947ef246c6879e0a2e6844/packages/sim-cli/src/commands/protocol/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6813/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6813/files#diff-2e6d263e2d4ce8770f44316c771143a9962d41df3c733c8027b56deea8234045
https://github.com/simstudioai/sim/pull/6813/files#diff-2e6d263e2d4ce8770f44316c771143a9962d41df3c733c8027b56deea8234045
https://github.com/simstudioai/sim/pull/6813/files#diff-2e6d263e2d4ce8770f44316c771143a9962d41df3c733c8027b56deea8234045
Please reload this pagehttps://github.com/simstudioai/sim/pull/6813/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6813/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.