Skip to content

Conversation

@jamesmurdza
Copy link
Contributor

@jamesmurdza jamesmurdza commented Jan 16, 2026

This adds an OpenCode guide to the documentation in the most recent format used in #3383.

Signed-off-by: James Murdza <[email protected]>

# Conflicts:
#	apps/docs/src/content/i18n/en.json
Copilot AI review requested due to automatic review settings January 16, 2026 21:03
@jamesmurdza jamesmurdza changed the title feat(docs): add Open Code guide feat(docs): add OpenCode guide Jan 16, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a comprehensive guide for using OpenCode's web interface with Daytona sandboxes, following the documentation format established in recent guides.

Changes:

  • Added new documentation file for OpenCode web agent integration
  • Configured sidebar entry and i18n translation
  • Added OpenCode icon for sidebar navigation

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 5 comments.

File Description
apps/docs/src/content/docs/en/opencode-web-agent.mdx Complete guide for running OpenCode's web interface in Daytona sandboxes with setup, usage, and code examples
apps/docs/src/content/config.ts Added sidebar link configuration for the OpenCode guide in the integrations section
apps/docs/src/content/i18n/en.json Added "OpenCode" translation key for sidebar label
apps/docs/src/assets/sidebar/opencode.svg Added OpenCode icon for sidebar navigation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mislavivanda
Copy link
Collaborator

Regarding the errors that need to be fixed, there is only the invalid link inside the Initialization section for Creates a new [Daytona sandbox] list item.

I would suggest changing/adding few things to enhance the clarity for certain parts of this guide:

  • Add an explanation note which would say that to run this guide we don't need to specify the LLM provider API key(although we could if we wanted) since OpenCode will default to using one of the free models available.
  • Explain more explicitly the meaning of the PREVIEW_URL_PATTERN by saying that we generate a preview URL for some test port which we later fed to the agent system prompt so that the agent nows how to construct a preview URL for some port inside the sandbox when needed.
  • The script automatically replaces the localhost URL in OpenCode’s output with a Daytona preview link so you can access it from your browser: say that since OpenCode's link to web UI is relative to the localhost domain we need to parse the output with this method to detected localhost links and replace them with preview link domains in order for user to be able to access it from his device which runs the guide since localhost is relative to the sandbox .

@jamesmurdza
Copy link
Contributor Author

@mislavivanda I have implemented your suggestions.

@mislavivanda
Copy link
Collaborator

Inside the Initialization section the last item link for preview links is broken. Adding / as a prefix fixes it.

Also, why did we change the replaceUrl regex inside the docs? With that, the guide source code is not in sync with the docs guide.

@jamesmurdza
Copy link
Contributor Author

Inside the Initialization section the last item link for preview links is broken. Adding / as a prefix fixes it.

Also, why did we change the replaceUrl regex inside the docs? With that, the guide source code is not in sync with the docs guide.

I removed some backslashes accidentally. Both issues are fixed now.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants