Skip to content

Make the sample prompt work in any directory - #155

Merged
sudoHG merged 1 commit into
mainfrom
sudoHG/127-sample-prompt
Oct 5, 2026
Merged

sudoHG merged 1 commit into
mainfrom
sudoHG/127-sample-prompt

Conversation

@sudoHG

@sudoHG sudoHG commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Refs #127

Problem

The sample prompt shown after a client connects asked the agent to run ./deploy.sh --env staging. That script exists only in some projects, so the first try after connecting usually stops with "no deploy.sh here" (seen during the v0.2.0 acceptance with Codex).

Change

  • The sample prompt now asks the agent to run a command that checks the credential's variables are set, without printing their values. It works in any directory and with any credential, still goes through approval, and the agent sees only the command's output.
  • English and Simplified Chinese strings replaced; the unused sampleCommand constant removed.
  • README step 3 (both languages) uses the same prompt and explains that real commands such as ./deploy.sh are asked for the same way.

Checks

  • swift build: passed.
  • swift test --filter 'AgentAccessPresentationTests|ScreenPresentationTests': 15 passed, 0 failed.
  • python3 scripts/check_hygiene.py, python3 scripts/check_module_deps.py, git diff --check: passed.
  • Full suite and desktop flows: this PR's CI.

@sudoHG
sudoHG merged commit a3120ce into main Oct 5, 2026
2 checks passed
@sudoHG
sudoHG deleted the sudoHG/127-sample-prompt branch October 5, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant