Skip to content

[DOCS] Render per-project artifact images in the opentask panel #879

Closed

Description

Summary

The opentask extension panel now rewrites per-project artifact image paths onto the infer daemon's route, so generated images render inline in the panel instead of answering 404. Markdown image paths embedding /.infer/projects//artifacts/ (both tilde-prefixed and absolute home-directory) map onto GET http://127.0.0.1:/artifacts//, which the daemon serves read-only over the AG-UI binding's loopback listener. The stale global /.infer/artifacts/<...> rewriting was removed.

Affected pages: the browser-use / CLI bridge documentation (the wire contract lives in docs/browser-extension-protocol.md in inference-gateway/cli, shipped by inference-gateway/cli#1416), wherever the docs site describes the browser extension's artifact rendering, and any page still describing the old global artifacts layout.

Acceptance Criteria

  • The browser-use / bridge docs describe the per-project artifacts route and that the opentask panel renders those images
  • Any page describing the old global artifacts layout is updated or removed
  • Pages stay ASCII-only with plain hyphens

Activity

  1. added
    documentation
    on Sep 30, 2026
  2. added theissue type on Sep 30, 2026
  3. edenreich commented on Sep 30, 2026

    @edenreich
    Contributor

    @claude can you document this?

  4. inference-gateway-maintainer commented on Sep 30, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 2m 9s —— View job • docs/issue-879-20260930-2343 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-879-20260930-2343?quick_pull=1&title=Issue%20%23879%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23879%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documented the per-project artifacts route

    • Gather context - the only page describing this is opentask.md, section "Artifacts (generated images)"
    • Read the upstream wire contract (docs/browser-extension-protocol.md in inference-gateway/cli)
    • Update opentask.md
    • Validate: lint:md, format:check, build all pass
    • Commit and open PR

    What changed

    opentask.md "Artifacts (generated images)" now describes the shipped behavior:

    • The extension rewrites markdown image paths containing /.infer/projects/<project-slug>/artifacts/<relative-path> - tilde-prefixed or spelled out as an absolute home-directory path - onto GET http://127.0.0.1:<port>/artifacts/<project-slug>/<relative-path>. The stale global /artifacts/<relative-path> form is gone.
    • Dropped the "daemon does not serve that route yet / answers 404 / a per-project form is planned" paragraph. The daemon now serves the file read-only over the AG-UI binding's loopback listener, so generated images render inline in the panel, and the slug in the route is what lets one daemon serving many projects resolve the right directory.
    • Added the route's confinement: unauthenticated because a browser <img> tag cannot send the bearer token, so it listens only on loopback and answers only from inside ~/.infer/projects/<project-slug>/artifacts/; a non-local slug, a relative path that escapes the artifacts dir, a missing file, and a directory all answer 404.

    No other page described the old global layout for the extension. The remaining ~/.infer/artifacts/ references in cli.md, cli-skills.md and github-action.md are the CLI's own session artifacts directory, which this change does not touch, so I left them alone. Page stays ASCII-only with plain hyphens.

    PR: #880
    | Branch

  5. inference-gateway-releaser commented on Oct 1, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.20 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions