Skip to content

Slash menu advertises commands that cannot complete in the app sandbox #4

Description

@devswha

Summary

CUA sandbox testing found commands advertised by /api/providers/gjc/commands that do not provide a working app flow.

/init

  1. Create a minimal git project containing only README.md.
  2. Type /init, accept the Run gate.
  3. The command starts an agent run instead of a bounded builtin and immediately tries to read:
/root/.pi/skills/init/SKILL.md

The file does not exist. The agent then searches /root, /opt, /usr, /home, and /Users, including a 30-second find that times out. AGENTS.md is never created and the run must be stopped manually.

/transcript

The command is advertised as “Browse the current session transcript”, but executing it only returns:

Transcript browsing is available in the interactive TUI.

That makes an app-advertised command a dead end. The app already has session transcript data and should either implement an app-native view or hide/refuse the command consistently.

/cost inconsistency

The chat command-result fallback advertises /cost and showCostModal() fabricates a /cost command, but typed /cost is classified as UNRECOGNIZED COMMAND and reaches the generic Run gate. The legacy handler posts to /api/commands/execute, for which no server route exists.

Expected

Every command shown to app users must have an app-capable execution path. Missing TUI prompt files must not trigger open-ended filesystem searches, and TUI-only commands must be filtered or given an app-native equivalent.

Environment

  • Gajae Code App v2.0.0-beta.3
  • macOS arm64
  • CUA through the web app against a disposable git project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions