Skip to content

"Fix this" compliance buttons redirect to Claude.ai prompt instead of performing the fix #392

@github-actions

Description

@github-actions

Problem

The "Fix this" buttons in the compliance dashboard do not work as expected. Instead of directly initiating a fix, they redirect the user to a Claude.ai URL with a pre-filled prompt.

Example

Clicking "Fix this" for a compliance issue generates a URL like:

https://claude.ai/code?q=In%20kb%2Fdisorders%2FSemicircular_Canal_Dehiscence_Syndrome.yaml%20...&repo=monarch-initiative/dismech

This takes the user to Claude.ai with a prompt pre-filled, but the user then has to manually trigger the fix from there. The expected behavior would be for the fix to be applied directly or at minimum for the button to invoke a local Claude Code session (via CLI) rather than opening an external browser URL.

Expected Behavior

The "Fix this" button should either:

  1. Invoke a local claude CLI / Claude Code session that applies the fix directly in the repository, or
  2. Open a GitHub issue or PR with the fix pre-populated, or
  3. At minimum, be clearly labeled as "Open in Claude.ai" to set correct user expectations.

Steps to Reproduce

  1. Run just gen-dashboard to generate the compliance dashboard (dashboard/index.html).
  2. Open the dashboard in a browser.
  3. Click any "Fix this" button next to a compliance issue.
  4. Observe that it redirects to https://claude.ai/code?q=... rather than performing the fix locally.

Context

  • The buttons are generated in the dashboard HTML (see src/dismech/render.py or the dashboard template).
  • The redirect URL pattern is https://claude.ai/code?q=<prompt>&repo=monarch-initiative/dismech.
  • This workflow breaks when users do not have an active Claude.ai session or expect local automation.

Suggested Fix

Update the dashboard template so that "Fix this" links either:

  • Use a claude:// URI scheme or invoke a local script if the intent is a local Claude Code action.
  • Are replaced with gh issue create links that file a tracking issue for the fix.
  • Are clearly re-labeled to communicate that they open Claude.ai in the browser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions