Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion container/bin/run-session.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ MODEL_FLAG=""
if [ -n "$MODEL" ]; then
MODEL_FLAG="--model $MODEL"
fi
wclaude --dangerously-skip-permissions --session-id "$CLAUDE_SESSION_ID" --name "$SESSION_NAME" $MODEL_FLAG "$FULL_PROMPT" || EXIT_CODE=$?
wclaude --session-id "$CLAUDE_SESSION_ID" --name "$SESSION_NAME" $MODEL_FLAG "$FULL_PROMPT" || EXIT_CODE=$?

# Update registry with final status
$SESSION_REG finish "$SESSION_NAME" "$EXIT_CODE" > /dev/null 2>&1 || true
Expand Down
2 changes: 1 addition & 1 deletion container/bin/wclaude
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ if [ -n "$WOLT_HOME" ] && [ -d "$WOLT_HOME/.claude" ]; then
fi

trust-dir "$(pwd)" 2>/dev/null
exec claude "$@"
exec claude --dangerously-skip-permissions "$@"
4 changes: 2 additions & 2 deletions container/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ data = json.dumps({'url': url, 'port': 7777, 'updated': int(time.time() * 1000)}
open(f'{state_dir}/current-url-main.json', 'w').write(data)
print(f'[viewport:main] → {url}')
" "$WOLT_NAME" "$WOLT_DIR/.state"
tmux send-keys -t main "export WOLT_SESSION=main && wclaude --dangerously-skip-permissions /woltspace-create-wolt" Enter
tmux send-keys -t main "export WOLT_SESSION=main && wclaude /woltspace-create-wolt" Enter
else
# TODO: replace with a /wake skill — check for recent sessions, offer resume or fresh start
tmux send-keys -t main "wclaude --dangerously-skip-permissions \"hey ${WOLT_NAME}\"" Enter
tmux send-keys -t main "wclaude \"hey ${WOLT_NAME}\"" Enter
fi

# ── Services ──
Expand Down
4 changes: 2 additions & 2 deletions container/entrypoint_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ def write_bashrc(wolt_dir: Path, wolt_name: str):
f"wolt() {{\n"
f' cd {wolt_dir}\n'
f' if [[ "$1" == "--resume" ]]; then\n'
f" wclaude --dangerously-skip-permissions --resume\n"
f" wclaude --resume\n"
f" else\n"
# TODO: replace with a /wake skill instead of hardcoded greeting
f' wclaude --dangerously-skip-permissions "hey {wolt_name}" "$@"\n'
f' wclaude "hey {wolt_name}" "$@"\n'
f" fi\n"
f"}}\n"
)
Expand Down
4 changes: 2 additions & 2 deletions container/lib/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,15 +583,15 @@ def resume_session(name: str, prompt: str = "") -> dict:
if tmux_alive and not claude_running:
# Tmux alive but claude exited — restart claude with --resume inside the pane
cd_prefix = f"cd {shlex.quote(session_dir)} && " if session_dir else ""
resume_cmd = f"{cd_prefix}export WOLT_SESSION={shlex.quote(name)} WOLT_NAME={shlex.quote(wolt)} && {WCLAUDE} --dangerously-skip-permissions {model_flag} {resume_flag} {safe_prompt}"
resume_cmd = f"{cd_prefix}export WOLT_SESSION={shlex.quote(name)} WOLT_NAME={shlex.quote(wolt)} && {WCLAUDE} {model_flag} {resume_flag} {safe_prompt}"
_tmux_paste(name, resume_cmd)
registry.update(name, wolt=wolt, status="running")
return {"name": name, "url": session_url, "status": "revived", "detail": "claude exited, restarted with --resume in existing tmux"}

# Tmux is dead — create a fresh tmux session with wclaude --resume
work_dir = session_dir or str(WOLTS_DIR / wolt) if wolt else "/workspace"
cd_prefix = f"cd {shlex.quote(work_dir)} && " if work_dir else ""
resume_cmd = f"{cd_prefix}export WOLT_SESSION={shlex.quote(name)} WOLT_NAME={shlex.quote(wolt)} && {WCLAUDE} --dangerously-skip-permissions {model_flag} {resume_flag} {safe_prompt}"
resume_cmd = f"{cd_prefix}export WOLT_SESSION={shlex.quote(name)} WOLT_NAME={shlex.quote(wolt)} && {WCLAUDE} {model_flag} {resume_flag} {safe_prompt}"
subprocess.run(
["tmux", "new-session", "-d", "-s", name, "-c", work_dir or "/workspace", resume_cmd],
check=True, timeout=_TMUX_TIMEOUT,
Expand Down
2 changes: 1 addition & 1 deletion container/skills/woltspace-create-wolt/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ create-creature-wolt <name> <type>

```bash
push-view /wolt/<name>/site/
cd /workspace/wolts/<name>/ && wclaude --dangerously-skip-permissions '/woltspace-create-wolt'
cd /workspace/wolts/<name>/ && wclaude '/woltspace-create-wolt'
```

Your job is done. The new session picks up Self-Onboarding mode and takes over.
Expand Down
2 changes: 1 addition & 1 deletion woltspace
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ case "$cmd" in
echo " ${_L} the lodge is quiet${_R}"
exit 1
}
docker exec -it "$CONTAINER_NAME" claude --dangerously-skip-permissions
docker exec -it "$CONTAINER_NAME" wclaude
;;
logs)
docker logs -f "$CONTAINER_NAME"
Expand Down