Skip to content

Claude Code /goal is missing from Chat completion and local command feedback is invisible #578

Closed

Description

@knightnemo

What happened

Claude Code's /goal workflow is not discoverable or observable from Chat: /goal is missing from completion, the native goal-status dialog has no chat card, and local command feedback is discarded. This makes it difficult to tell whether setting a goal succeeded or was rejected without switching to Terminal.

Claude documents /goal [condition|clear] here: https://code.claude.com/docs/en/commands.

This report deliberately does not claim that the bridge blocks every manually typed /goal <condition>: source inspection shows the composer forwards arbitrary text, and submitText calls agentPrompt(paneId, text) without a command allowlist. The confirmed bugs concern discovery and feedback.

Reproduction and evidence

1. Missing completion

In a Claude pane, type /goal in Chat. The server's hard-coded Claude built-ins omit goal, so it cannot appear as a built-in suggestion. This is reproducible without a live session:

import { paneCommands } from './server/commands.ts';
import { mkdtempSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join } from 'node:path';

const home = mkdtempSync(join(tmpdir(), 'goal-command-repro-'));
console.log(paneCommands('claude', null, home).some(c => c.name === 'goal'));
// false

Source: Claude built-ins, used by /api/pane/commands.

2. Local rejection is invisible in Chat

In a disposable native Claude Code 2.1.251 session, I deliberately set disableAllHooks: true for the probe and entered:

/goal Reply with GOAL_PROBE_OK without using tools or changing files.

Claude correctly rejected it with:

/goal can't run while hooks are restricted (disableAllHooks or allowManagedHooksOnly is set in settings or by policy).

That is an intentional test precondition, not a claim about the reporting user's settings. The Web UI bug is that this actionable error disappears. The native JSONL records use type: "system", subtype: "local_command", and top-level content. A minimal fixture preserving their observed shape reproduces the loss with the actual parser:

import { parseClaudeTranscript } from './server/conversation.ts';

const records = [
  {
    type: 'system', subtype: 'local_command', isMeta: false,
    content: '<command-name>/goal</command-name>\n<command-message>goal</command-message>\n<command-args>test</command-args>',
  },
  {
    type: 'system', subtype: 'local_command', isMeta: false,
    content: "<local-command-stdout>/goal can't run while hooks are restricted (disableAllHooks or allowManagedHooksOnly is set in settings or by policy).</local-command-stdout>",
  },
];
console.log(parseClaudeTranscript(records.map(x => JSON.stringify(x)).join('\n')));
// []

The parser reads entry.message?.content and does not render these system/local-command records. Its older user-message path also explicitly filters <command-...> and <local-command...> entries: parser, record handling.

3. Bare /goal has no chat representation

In the same native session, bare /goal opened a dialog showing Goal, No goal set, /goal <condition> to set one, and Esc to dismiss. Passing that observed screen text to parseInteractivePrompt('claude', screen) returns null.

The existing goal renderer handles OmO's create_goal / update_goal / get_goal tool records; it does not establish support for Claude's native /goal workflow.

Expected behavior

  • Offer /goal and its argument hint for Claude versions that support it.
  • Preserve relevant native goal-command feedback, especially errors, so a user can tell whether the command was accepted.
  • Show goal status/control in Chat, or explicitly guide the user to Terminal for the unsupported dialog.
  • Preserve manual command passthrough, including /goal clear.

Verification / environment

  • Source checkout: main at f8f09d16468e46e914ba8d75c50c586d172152eb (package.json version 0.4.0).
  • Native CLI probe: Claude Code 2.1.251, macOS arm64, disposable directory/session; no project files changed by Claude.
  • Runtime for parser checks: Bun 1.4.2.
  • Existing focused tests: HERDR_TEST_MODE=unit bun test ./server/commands.test.ts ./server/conversation.test.ts — 59 passed, 0 failed.
  • Separate reproduction assertions confirmed all three results above.
  • Scope: native CLI observations plus execution of the Web UI's actual command/parse functions and inspection of the send path. A complete browser → herdr → Claude setting/clearing cycle was not run; the reporter's installed version and browser are not yet available. No claim is made that successful goal-setting always fails at the transport layer.
  • Searched existing issues/PRs for goal, slash, and local-command; found OmO-specific goal work, but no matching Claude /goal report.

Activity

  1. devswha commented on Oct 7, 2026

    @devswha
    Owner

    Thanks for the careful report and the repros. #583 fixes the two confirmed bugs:

    • /goal is suggested in a Claude pane, with its [condition|clear] hint.
    • What a slash command answers (the local_command stdout/stderr records) shows in Chat, so a refused /goal says why there.

    Still open here: a goal-status card for the bare /goal dialog. That is a new feature and is not part of #583, so this issue stays open for it.

  2. devswha commented on Oct 17, 2026

    @devswha
    Owner

    Closing: the two confirmed bugs were fixed by #583 (0d97891). The remaining goal-status card is a new feature and is tracked in #1292. Thanks again for the report.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions