π OpenHands: AI-Driven Development
Add GitHub bug report issue template (#813)
Rohit Malhotraf2d19c89235b
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.ymlnew file mode 100644index 0000000000..9d3050cd18--- /dev/null+++ b/.github/ISSUE_TEMPLATE/bug_report.yml@@ -0,0 +1,105 @@+name: Bug Report+description: Report a bug or unexpected behavior in Agent Canvas.+title: "[Bug]: "+labels: ["bug"]+body:+ - type: markdown+ attributes:+ value: |+ Thanks for taking the time to report a bug! Please fill out the sections below so we can reproduce and fix the issue.++ - type: dropdown+ id: os+ attributes:+ label: Operating System+ options:+ - macOS+ - Windows+ - Linux+ validations:+ required: true++ - type: dropdown+ id: install-method+ attributes:+ label: Installation Method+ description: How did you install / run Agent Canvas?+ options:+ - npm (`npx @openhands/agent-canvas` or `npm install -g @openhands/agent-canvas`)+ - Docker (`ghcr.io/openhands/agent-canvas`)+ - From source (`npm run dev` / `npm run dev:minimal`)+ - Other+ validations:+ required: true++ - type: input+ id: version+ attributes:+ label: Agent Canvas Version+ description: "npm: `agent-canvas --version` Β· Docker: the image tag you pulled (e.g. `ghcr.io/openhands/agent-canvas:latest`)"+ placeholder: "e.g. 1.0.0-alpha.6"+ validations:+ required: true++ - type: textarea+ id: description+ attributes:+ label: Bug Description+ description: A clear and concise description of what the bug is.+ placeholder: What happened?+ validations:+ required: true++ - type: textarea+ id: steps+ attributes:+ label: Steps to Reproduce+ description: Step-by-step instructions to reproduce the behavior.+ placeholder: |+ 1. Go to '...'+ 2. Click on '...'+ 3. Scroll down to '...'+ 4. See error+ validations:+ required: true++ - type: textarea+ id: actual+ attributes:+ label: Actual Behavior+ description: What actually happened?+ validations:+ required: true++ - type: textarea+ id: expected+ attributes:+ label: Expected Behavior+ description: What did you expect to happen?+ validations:+ required: true++ - type: textarea+ id: logs+ attributes:+ label: Relevant Logs+ description: Paste any error messages or console output. Content is auto-wrapped in a code block.+ render: shell+ validations:+ required: false++ - type: textarea+ id: screenshots+ attributes:+ label: Screenshots+ description: Drag and drop or paste any screenshots that help explain the issue.+ validations:+ required: false++ - type: textarea+ id: additional+ attributes:+ label: Additional Context+ description: Anything else that might be helpful (config, workarounds tried, etc.).+ validations:+ required: falsediff --git a/.github/workflows/docker.yml b/.github/workflows/docker.ymlindex 386816de5b..26ae6c12df 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/docker.yml@@ -90,9 +90,11 @@ jobs:AGENT_SERVER_VERSION=$(node -p "require('./config/defaults.json').versions.agentServer")AGENT_SERVER_IMAGE_BASE=$(node -p "require('./config/defaults.json').images.agentServer")AUTOMATION_VERSION=$(node -p "require('./config/defaults.json').versions.automation")+ AGENT_CANVAS_VERSION=$(node -p "require('./package.json').version")echo "agent_server_version=$AGENT_SERVER_VERSION" >> "$GITHUB_OUTPUT"echo "default_agent_server_image=${AGENT_SERVER_IMAGE_BASE}:${AGENT_SERVER_VERSION}-python" >> "$GITHUB_OUTPUT"echo "default_automation_version=$AUTOMATION_VERSION" >> "$GITHUB_OUTPUT"+ echo "agent_canvas_version=$AGENT_CANVAS_VERSION" >> "$GITHUB_OUTPUT"- name: Compute metadata and tagsid: prep@@ -184,6 +186,7 @@ jobs:build-args: |AGENT_SERVER_IMAGE=${{ steps.prep.outputs.agent_server_image }}AUTOMATION_VERSION=${{ steps.prep.outputs.automation_version }}+ AGENT_CANVAS_VERSION=${{ steps.config.outputs.agent_canvas_version }}OPENHANDS_BUILD_GIT_SHA=${{ env.RELEVANT_SHA }}OPENHANDS_BUILD_GIT_REF=${{ env.RELEVANT_REF }}VITE_APP_ENV=${{ steps.prep.outputs.vite_app_env }}diff --git a/bin/agent-canvas.mjs b/bin/agent-canvas.mjsindex 4b74d74fa7..9c6cc9d903 100755--- a/bin/agent-canvas.mjs+++ b/bin/agent-canvas.mjs@@ -11,16 +11,22 @@* but serves pre-built static assets instead of the Vite dev server.*/-import { existsSync } from "node:fs";+import { existsSync, readFileSync } from "node:fs";import { join, dirname } from "node:path";import { fileURLToPath } from "node:url";const __dirname = dirname(fileURLToPath(import.meta.url));+const PKG_JSON = join(__dirname, "..", "package.json");// Build output is in build/ (not build/client/) - see react-router.config.ts unpackClientDirectoryconst BUILD_DIR = join(__dirname, "..", "build");-// Check for help flag first+// Check for version/help flags firstconst args = process.argv.slice(2);+if (args.includes("-v") || args.includes("--version")) {+ const { version } = JSON.parse(readFileSync(PKG_JSON, "utf-8"));+ console.log(version);+ process.exit(0);+}if (args.includes("-h") || args.includes("--help")) {console.log(`@openhands/agent-canvas - Run the Agent Canvas UI with agent-server@@ -33,6 +39,7 @@ USAGE:OPTIONS:-p, --port <port> Ingress port (default: 8000)+ -v, --version Show version number-h, --help Show this help messageENVIRONMENT VARIABLES:diff --git a/docker/Dockerfile b/docker/Dockerfileindex beb49ef7b7..c0ed77a9ae 100644--- a/docker/Dockerfile+++ b/docker/Dockerfile@@ -68,9 +68,11 @@ ARG AUTOMATION_VERSIONARG OPENHANDS_BUILD_GIT_SHA=unknownARG OPENHANDS_BUILD_GIT_REF=unknown+ARG AGENT_CANVAS_VERSION=devLABEL org.opencontainers.image.title="agent-canvas"LABEL org.opencontainers.image.description="All-in-one agent-canvas: Agent Server + Automation + Frontend"LABEL org.opencontainers.image.source="https://github.com/OpenHands/agent-canvas"+LABEL org.opencontainers.image.version="${AGENT_CANVAS_VERSION}"LABEL org.opencontainers.image.revision="${OPENHANDS_BUILD_GIT_SHA}"ENV AGENT_CANVAS_BUILD_GIT_SHA=${OPENHANDS_BUILD_GIT_SHA}