Repository navigation
Closed as not planned
Labels
Description
Jira: RHOAIENG-51910
Summary
Users need a way to submit platform feedback from any ACP session, regardless of which workflow is active. Today, slash commands are scoped to the active workflow's .claude/commands/ directory, so a /feedback command in the feedback workflow is only available in feedback sessions.
Problem
- Session workflows can't be changed after they start
- Commands are loaded exclusively from the active workflow's
.claude/commands/*.mdviaContentWorkflowMetadata→findActiveWorkflowDir - There is no mechanism for global/cross-workflow commands
- The feedback workflow exists at
workflows/feedback/in ambient-code/workflows but its/feedbackcommand is unreachable from other workflow sessions
Proposed Solution
Add a submit_feedback SDK tool using the @sdk_tool pattern already established by restart_session in components/runners/claude-code-runner/adapter.py.
Implementation Details
File: components/runners/claude-code-runner/adapter.py
Pattern to follow: The restart_session tool in _run_claude_agent_sdk():
- Define a function decorated with
@sdk_tool(fromclaude_agent_sdk.tool):
@sdk_tool(name="submit_feedback", description="Submit user feedback about the Ambient Code Platform. Use this when the user runs /feedback or wants to share feedback about the platform.")
async def submit_feedback_tool(feedback: str, category: str = "other") -> str:
"""
Parameters:
feedback: Summary of the user's feedback
category: One of: bug, feature, idea, other
"""
# POST to the existing /feedback FastAPI endpoint
# or call the feedback submission logic directly
...
return "Feedback submitted. The team reviews feedback weekly."- Add to the existing
"session"MCP server created viacreate_sdk_mcp_server:
session_tools_server = create_sdk_mcp_server(
"session",
tools=[restart_session_tool, submit_feedback_tool]
)- The tool is then automatically available in every session via
ClaudeAgentOptions.mcp_servers.
Existing infrastructure to leverage
- FastAPI endpoint:
components/runners/claude-code-runner/main.pyalready has a/feedbackendpoint that handles user feedback - Platform feedback API:
POST /api/projects/{project}/agentic-sessions/{session}/agui/feedback - SDK tool pattern:
restart_sessioninadapter.pydemonstrates exactly this pattern
Behavior
When a user says /feedback (or "I want to give feedback") in any session:
- Claude asks what's on their mind
- Summarizes with a category (bug / feature / idea / other)
- Shows the summary and asks for confirmation
- Calls the
submit_feedbackSDK tool - Confirms: "Sent to the Ambient team. The team reviews feedback weekly."
What NOT to do
- Do not modify
ContentWorkflowMetadataorfindActiveWorkflowDir— this isn't a workflow-scoped command - Do not add a "global commands" directory concept — the SDK tool pattern is simpler and already proven
- Do not clone the feedback workflow repo — the tool is self-contained
Key Files
| File | Role |
|---|---|
components/runners/claude-code-runner/adapter.py |
ClaudeCodeAdapter._run_claude_agent_sdk() — where restart_session is defined and SDK tools are registered |
components/runners/claude-code-runner/main.py |
Existing /feedback FastAPI endpoint |
components/backend/handlers/content.go |
ContentWorkflowMetadata / findActiveWorkflowDir (for reference only — don't modify) |
Acceptance Criteria
-
submit_feedbackSDK tool exists and is registered in the"session"MCP server - Tool is available in every ACP session regardless of active workflow
- Feedback is submitted to the platform feedback API
- User sees confirmation after submission
- No changes to workflow command loading (
content.go)
Activity
github-actions commentedon Feb 24, 2026
Amber Change Summary
The following files were modified:
Next Steps:
🔍 View AI decision process (logs available for 90 days)
github-actions commentedon Feb 24, 2026
🤖 Amber has created a pull request to address this issue: #679
The changes are ready for review. All automated checks will run on the PR.
🔍 View AI decision process (logs available for 90 days)
feat(runner): add /feedback slash command and graceful Langfuse fallback
github-actions commentedon Apr 4, 2026
Inactive for 30 days. Will close in 7 days unless there's activity.