René's URL Explorer Experiment


Title: fix(atlassian): share one cached, retrying cloudId resolver across Jira, Confluence, and JSM by waleedlatif1 · Pull Request #6541 · simstudioai/sim · GitHub

Open Graph Title: fix(atlassian): share one cached, retrying cloudId resolver across Jira, Confluence, and JSM by waleedlatif1 · Pull Request #6541 · simstudioai/sim

X Title: fix(atlassian): share one cached, retrying cloudId resolver across Jira, Confluence, and JSM by waleedlatif1 · Pull Request #6541 · simstudioai/sim

Description: Summary Every Jira, Confluence, and JSM tool re-resolved its site cloudId from accessible-resources on each invocation. Four hand-rolled copies of that lookup now read through one memoized resolver in lib/atlassian/discovery.ts A transient Atlassian 500 was never retried: the shared predicate covers 429/502/503/504 but not 500, so a single blip failed a whole run. Discovery is an idempotent GET, so it now replays 5xx — scoped to this path rather than widened into the shared predicate, which also guards non-idempotent writes The cache stores the promise, not the value, so concurrent blocks join one in-flight lookup and a rejection is evicted instead of pinned for the TTL. Only an exact domain match is retained — a single-site fallback is a property of the calling token, not the domain Retry budget is tighter than the shared ~31s default (four attempts across ~3.5s), honors Retry-After, and the request carries a timeout so a wedged fetch can't strand joined callers Fixes two defects found on the way: getConfluenceCloudId never checked the response status, so a 500 surfaced as No Confluence resources found (pointing at site permissions rather than the real fault); getAssetsWorkspaceId used a bare fetch with no retry and no cache Type of Change Bug fix Testing 19 unit tests covering caching, in-flight dedup, reject-eviction, the bounded retry budget, 5xx replay, and the non-retained fallback. Verified each can fail by reverting the behavior it covers. Full apps/sim suite green (22,760), plus type-check, lint, and the boundary/api-validation gates. 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 Every Jira, Confluence, and JSM tool re-resolved its site cloudId from accessible-resources on each invocation. Four hand-rolled copies of that lookup now read through one memoized resolve...

X Description: Summary Every Jira, Confluence, and JSM tool re-resolved its site cloudId from accessible-resources on each invocation. Four hand-rolled copies of that lookup now read through one memoized resolve...

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

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:2e07a166-bfef-c20c-73f6-96a68fc44604
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCD60:1EE905:6BC33D:98CE88:6AFB47AD
html-safe-nonce83c7a7d71058f8887ceb941894175fca42ba3cb4755f0fa7a4cb50326a741f9b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDYwOjFFRTkwNTo2QkMzM0Q6OThDRTg4OjZBRkI0N0FEIiwidmlzaXRvcl9pZCI6IjU5ODI5NTAyMzE3OTQ5OTMwNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3b2b8e6ed7aa995549134c2d9d8eb1b977fa7087e3afd4a16f924e2aa3b26779
hovercard-subject-tagpull_request:4254878924
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/6541/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 Every Jira, Confluence, and JSM tool re-resolved its site cloudId from accessible-resources on each invocation. Four hand-rolled copies of that lookup now read through one memoized resolve...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneacf7616d06cc051644705b379878c9bb13dc5e70ecf4ffd9b34140f8ac01d7e1
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
release26504db649b58525278f77a52b80ba5f10d5f4de
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6541/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6541%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%2F6541%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/6541/files
Reloadhttps://github.com/simstudioai/sim/pull/6541/files
Reloadhttps://github.com/simstudioai/sim/pull/6541/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests199 (199)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
investigate/jsm-accessible-resources-500https://github.com/simstudioai/sim/tree/investigate/jsm-accessible-resources-500
Conversation 19 https://github.com/simstudioai/sim/pull/6541
Commits 3 https://github.com/simstudioai/sim/pull/6541/commits
Checks 30 https://github.com/simstudioai/sim/pull/6541/checks
Files changed https://github.com/simstudioai/sim/pull/6541/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6541/files
fix(atlassian): share one cached, retrying cloudId resolver across Jira, Confluence, and JSM https://github.com/simstudioai/sim/pull/6541/files#top
Show all changes 3 commits https://github.com/simstudioai/sim/pull/6541/files
cb0de8e fix(atlassian): share one cached, retrying cloudId resolver across Ji… waleedlatif1 Aug 11, 2026 https://github.com/simstudioai/sim/pull/6541/commits/cb0de8e584b7756a522a84b351ab65a087db953d
15e1008 fix(atlassian): key discovery answers by credential and retry timeouts waleedlatif1 Aug 11, 2026 https://github.com/simstudioai/sim/pull/6541/commits/15e10080fca19973f68e18dab04ebd968b1c5a21
9173ccb fix(jira): treat an empty bulk-read cloudId as missing waleedlatif1 Aug 11, 2026 https://github.com/simstudioai/sim/pull/6541/commits/9173ccbecba05af21ec852d4f02c8607c0cb6313
Clear filters https://github.com/simstudioai/sim/pull/6541/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6541/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6541/files
discovery.test.ts https://github.com/simstudioai/sim/pull/6541/files#diff-74eb9a7d7af7df77b399ea2f9f5d48a167f6908524c756fdd36db3f8d04d1ae4
discovery.ts https://github.com/simstudioai/sim/pull/6541/files#diff-ee50e0a6987fd74ffedeeea65911b788c72b6d5af248b556990ad3d48df86001
utils.ts https://github.com/simstudioai/sim/pull/6541/files#diff-3a6a00447e464d33558162ad684136c47bf6946e241af118f5432f89b393e431
bulk_read.ts https://github.com/simstudioai/sim/pull/6541/files#diff-1f6d479a519fdb7c22a01a837f32d25a1e9160d3a0a1ebad5ea91b34639894d5
utils.ts https://github.com/simstudioai/sim/pull/6541/files#diff-30abb205642319f7f5138cee7f9206988d72898bcbafaf8f5fdcca10d346317a
utils.ts https://github.com/simstudioai/sim/pull/6541/files#diff-95d960fba93483bc54681cbc7a8d8af08796d6edf3e58474f332aa7b96cd2a19
apps/sim/lib/atlassian/discovery.test.tshttps://github.com/simstudioai/sim/pull/6541/files#diff-74eb9a7d7af7df77b399ea2f9f5d48a167f6908524c756fdd36db3f8d04d1ae4
View file https://github.com/simstudioai/sim/blob/9173ccbecba05af21ec852d4f02c8607c0cb6313/apps/sim/lib/atlassian/discovery.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6541/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/6541/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6541/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.