GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(opencode): wait for plugin activation before reading the catalog · juspay/agent-distro@fb0c7f1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • harnesses/opencode/tests
    • opencode_support.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎harnesses/opencode/tests/opencode_support.py‎

Copy file name to clipboardExpand all lines: harnesses/opencode/tests/opencode_support.py
+8-2Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,14 @@ def api(resource, launcher=binary, plugins=None):
5252
def get(resource):
5353
return json.loads(run('api', '--server', url, 'GET', '/api/' + resource,
5454
'--header', 'x-opencode-directory:' + str(home), launcher=launcher))
55-
# Cold locations activate plugins asynchronously; this endpoint waits for activation.
56-
get('integration')
55+
# Cold locations activate plugins asynchronously and no endpoint waits
56+
# for them: like upstream's one-shot clients, wait for a plugin list.
57+
for _ in range(60):
58+
if get('plugin')['data']:
59+
break
60+
time.sleep(0.5)
61+
else:
62+
raise AssertionError('no plugin activated')
5763
for _ in range(60):
5864
result = get(resource)
5965
if resource != 'mcp' or all(s['status']['status'] != 'pending' for s in result['data']):

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.