Skip to content
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
707f1bd
fix(cli): persist /memory toggle state across dialog reopen (#4650)
LaZzyMan Jun 1, 2026
59c2836
Hide internal docs from docs site (#4357)
DragonnZhang Jun 1, 2026
7448724
fix(core): preserve uid in atomicWriteFile to avoid breaking shared-w…
doudouOUC Jun 1, 2026
788f215
Improve hooks matcher display (#4545)
qqqys Jun 1, 2026
68e4819
fix(cli): use session channel when closing ACP sessions (#4522)
Jerry2003826 Jun 1, 2026
cea15a1
fix(core,cli): replace full-history structuredClone with shallow/tail…
yiliang114 Jun 1, 2026
2d8052b
feat(cli): add respectUserColors and hideContextIndicator options for…
zzhenyao Jun 2, 2026
4e1b382
fix(core): tolerate unsupported Streamable HTTP GET SSE (#4521)
Jerry2003826 Jun 2, 2026
c52c9f1
fix(insight): Harden insight facet normalization and empty qualitativ…
DragonnZhang Jun 2, 2026
aaab5f2
feat(cli): notify when background shells finish (#4355)
DragonnZhang Jun 2, 2026
5d05cde
feat(core): add simplify bundled skill (#3570)
pomelo-nwu Jun 2, 2026
bec97f4
feat(skills): add agent reproduction workflows (#4118)
DragonnZhang Jun 2, 2026
1285214
feat(cli): virtual viewport for long conversations on ink 7 (#4146)
chiga0 Jun 2, 2026
13f37dc
feat(cli): background housekeeping for stale file-history dirs (#4414)
doudouOUC Jun 2, 2026
1a6b4d3
fix(core): loosen auto-mode classifier timeouts, disable stage-2 thin…
qqqys Jun 2, 2026
40f061a
fix(core): coerce hostile-provider usage token counts (#4350 part 1) …
DragonnZhang Jun 2, 2026
237bf87
feat(core): inject context env vars (session/agent/prompt ID) into sh…
yiliang114 Jun 2, 2026
1a5b979
Add AUTO mode denial observability and caps (#4476)
qqqys Jun 2, 2026
c4a8e60
feat(core): auto-dump memory diagnostics to disk on pressure detectio…
yiliang114 Jun 2, 2026
27a7e8a
feat(core): atomic write rollout for credentials, memory, config, JSO…
doudouOUC Jun 2, 2026
6f6b326
docs: add /diff command and auto theme detection documentation (#4699)
BZ-D Jun 2, 2026
2d12280
chore: sync upstream QwenLM/qwen-code (2 commits)
TaimoorSiddiquiOfficial Jun 2, 2026
10fe26f
fix(types): remove duplicate izn entries across type definitions and …
TaimoorSiddiquiOfficial Jun 2, 2026
df676c6
fix(branding): rename all remaining .qwen references to .hopcode
TaimoorSiddiquiOfficial Jun 2, 2026
0d794b7
fix(test): use pendingHistoryItems not pendingGeminiHistoryItems in M…
TaimoorSiddiquiOfficial Jun 2, 2026
2347022
fix(branding): update skill-manager test mock strings qwen->hopcode
TaimoorSiddiquiOfficial Jun 2, 2026
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
66 changes: 33 additions & 33 deletions docs/e2e-tests/worktree-phase-d.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ validate "symlink absent because D-2 is absent" — they collapse to "tool
absent." Add this guard at the top of each:

```bash
HAS_ENTER_WORKTREE=$($QWEN "list your tools and stop" --approval-mode yolo --output-format json 2>/dev/null \
HAS_ENTER_WORKTREE=$($QWEN "list your tools and stop" --approval-mode izn --output-format json 2>/dev/null \
| jq -e '.[] | select(.type=="system") | .tools | index("enter_worktree")' >/dev/null && echo yes || echo no)
if [ "$HAS_ENTER_WORKTREE" != "yes" ]; then
echo "SKIP: enter_worktree absent in baseline — E2/E3 require Phase A+B"
Expand Down Expand Up @@ -77,13 +77,13 @@ the test target — PR `#4174` (Phase C) is a guaranteed-present reference.

## Group A: `--worktree` flag basic forms

**Mode:** headless, `--approval-mode yolo`, `--output-format json`
**Mode:** headless, `--approval-mode izn`, `--output-format json`

### A1: bare `--worktree` (auto-slug)

```bash
$QWEN --worktree "say hello and stop" \
--approval-mode yolo --output-format json 2>/dev/null > /tmp/a1.out
--approval-mode izn --output-format json 2>/dev/null > /tmp/a1.out

# A `worktree_started` system event is emitted at startup. The `notice`
# field contains the slug (auto-generated `adj-noun-XXXXXX`) inside the
Expand Down Expand Up @@ -111,7 +111,7 @@ ls -d "$TEST_DIR/.qwen/worktrees/"*

```bash
$QWEN --worktree my-feature "say hello and stop" \
--approval-mode yolo --output-format json 2>/dev/null > /tmp/a2.out
--approval-mode izn --output-format json 2>/dev/null > /tmp/a2.out

ls -d "$TEST_DIR/.qwen/worktrees/my-feature"
git -C "$TEST_DIR" branch | grep "worktree-my-feature"
Expand All @@ -127,7 +127,7 @@ TEST_DIR).

```bash
$QWEN --worktree=my-feature "say hi" \
--approval-mode yolo --output-format json 2>/dev/null > /tmp/a3.out
--approval-mode izn --output-format json 2>/dev/null > /tmp/a3.out
```

**Expected (post-impl):** same as A2.
Expand All @@ -136,7 +136,7 @@ $QWEN --worktree=my-feature "say hi" \

```bash
$QWEN --worktree "../escape" "say hi" \
--approval-mode yolo --output-format json 2>/dev/null > /tmp/a4.out
--approval-mode izn --output-format json 2>/dev/null > /tmp/a4.out
echo "exit=$?"

ls "$TEST_DIR/.qwen/worktrees/" 2>/dev/null
Expand All @@ -154,7 +154,7 @@ ls "$TEST_DIR/.qwen/worktrees/" 2>/dev/null
NON_GIT=$(mktemp -d)
cd "$NON_GIT"
$QWEN --worktree "say hi" \
--approval-mode yolo --output-format json 2>/dev/null > /tmp/a5.out
--approval-mode izn --output-format json 2>/dev/null > /tmp/a5.out
echo "exit=$?"
```

Expand All @@ -170,7 +170,7 @@ or "git init".
```bash
SESSION_ID=$(uuidgen)
$QWEN --worktree b1-test --session-id "$SESSION_ID" "say hi" \
--approval-mode yolo --output-format json 2>/dev/null > /tmp/b1.out
--approval-mode izn --output-format json 2>/dev/null > /tmp/b1.out

SIDECAR=~/.qwen/projects/$PROJECT_ID/chats/$SESSION_ID.worktree.json
jq '.slug, .worktreePath, .worktreeBranch, .originalCwd, .originalBranch, .originalHeadCommit' \
Expand All @@ -190,7 +190,7 @@ jq '.slug, .worktreePath, .worktreeBranch, .originalCwd, .originalBranch, .origi

```bash
$QWEN --worktree b2-test "run the shell tool with command 'pwd', then stop" \
--approval-mode yolo --output-format json 2>/dev/null > /tmp/b2.out
--approval-mode izn --output-format json 2>/dev/null > /tmp/b2.out

# Extract the shell tool's stdout from the user-message tool_result
jq -r '.[] | select(.type=="user") | .message.content[] | select(.tool_use_id != null) | .content' \
Expand All @@ -203,7 +203,7 @@ jq -r '.[] | select(.type=="user") | .message.content[] | select(.tool_use_id !=

```bash
$QWEN --worktree b3-test "run the shell tool with command 'pwd && git rev-parse --abbrev-ref HEAD', then stop" \
--approval-mode yolo --output-format json 2>/dev/null > /tmp/b3.out
--approval-mode izn --output-format json 2>/dev/null > /tmp/b3.out

jq -r '.[] | select(.type=="user") | .message.content[] | select(.tool_use_id != null) | .content' \
< /tmp/b3.out
Expand All @@ -222,11 +222,11 @@ is inside the worktree.
# Run 1: create a session with worktree "first"
SESSION_ID=$(uuidgen)
$QWEN --worktree first --session-id "$SESSION_ID" "say hi" \
--approval-mode yolo --output-format json 2>/dev/null > /tmp/c1-run1.out
--approval-mode izn --output-format json 2>/dev/null > /tmp/c1-run1.out

# Run 2: resume the same session but request a different worktree
$QWEN --resume "$SESSION_ID" --worktree second "say hi again" \
--approval-mode yolo --output-format json 2>/dev/null > /tmp/c1-run2.out
--approval-mode izn --output-format json 2>/dev/null > /tmp/c1-run2.out

# Sidecar should now point at "second"
SIDECAR=~/.qwen/projects/$PROJECT_ID/chats/$SESSION_ID.worktree.json
Expand All @@ -248,12 +248,12 @@ ls -d "$TEST_DIR/.qwen/worktrees/"*
```bash
SESSION_ID=$(uuidgen)
$QWEN --worktree c2 --session-id "$SESSION_ID" "say hi" \
--approval-mode yolo --output-format json 2>/dev/null > /tmp/c2-run1.out
--approval-mode izn --output-format json 2>/dev/null > /tmp/c2-run1.out

rm -rf "$TEST_DIR/.qwen/worktrees/c2" # simulate user-deleted dir

$QWEN --resume "$SESSION_ID" --worktree c2-fresh "say hi" \
--approval-mode yolo --output-format json 2>/dev/null > /tmp/c2-run2.out
--approval-mode izn --output-format json 2>/dev/null > /tmp/c2-run2.out

ls -d "$TEST_DIR/.qwen/worktrees/"*
```
Expand All @@ -271,7 +271,7 @@ worktree was created by the CLI flag rather than `EnterWorktreeTool`.

```bash
tmux new-session -d -s d1 -x 200 -y 50 \
"cd $TEST_DIR && $QWEN --worktree d1-test --approval-mode yolo"
"cd $TEST_DIR && $QWEN --worktree d1-test --approval-mode izn"
sleep 3

# Verify worktree is active (Footer indicator)
Expand All @@ -294,7 +294,7 @@ three radio options appear.

```bash
tmux new-session -d -s d2 -x 200 -y 50 \
"cd $TEST_DIR && $QWEN --worktree d2-test --approval-mode yolo"
"cd $TEST_DIR && $QWEN --worktree d2-test --approval-mode izn"
sleep 3
tmux send-keys -t d2 C-c; sleep 0.3; tmux send-keys -t d2 C-c; sleep 1

Expand All @@ -314,7 +314,7 @@ tmux kill-session -t d2
```bash
SESSION_ID=$(uuidgen)
tmux new-session -d -s d3 -x 200 -y 50 \
"cd $TEST_DIR && $QWEN --worktree d3-test --session-id $SESSION_ID --approval-mode yolo"
"cd $TEST_DIR && $QWEN --worktree d3-test --session-id $SESSION_ID --approval-mode izn"
sleep 3
tmux send-keys -t d3 C-c; sleep 0.3; tmux send-keys -t d3 C-c; sleep 1
tmux send-keys -t d3 Down Enter # select "Remove worktree and branch"
Expand Down Expand Up @@ -353,7 +353,7 @@ EOF

```bash
$QWEN --worktree e1-test "say hi" \
--approval-mode yolo --output-format json 2>/dev/null > /dev/null
--approval-mode izn --output-format json 2>/dev/null > /dev/null

ls -la "$TEST_DIR/.qwen/worktrees/e1-test/node_modules"
readlink "$TEST_DIR/.qwen/worktrees/e1-test/node_modules"
Expand All @@ -366,7 +366,7 @@ pointing to `$TEST_DIR/node_modules`.

```bash
$QWEN "use enter_worktree to create a worktree named e2-test, then stop" \
--approval-mode yolo --output-format json 2>/dev/null > /dev/null
--approval-mode izn --output-format json 2>/dev/null > /dev/null

readlink "$TEST_DIR/.qwen/worktrees/e2-test/node_modules"
```
Expand All @@ -379,7 +379,7 @@ Requires a sub-agent definition. Use the built-in fork mechanism:

```bash
$QWEN "use the agent tool with subagent_type='general-purpose', isolation='worktree', description='check node_modules', prompt='run pwd and ls -la node_modules then exit'" \
--approval-mode yolo --output-format json 2>/dev/null > /tmp/e3.out
--approval-mode izn --output-format json 2>/dev/null > /tmp/e3.out

# Extract agent worktree dir from result message
jq -r '.[] | select(.type=="assistant") | .message.content[] | select(.type=="tool_use") | .input' \
Expand All @@ -401,7 +401,7 @@ cat > "$TEST_DIR/.qwen/settings.json" <<'EOF'
{ "worktree": { "symlinkDirectories": ["does-not-exist"] } }
EOF

$QWEN --worktree e4-test "say hi" --approval-mode yolo --output-format json 2>/dev/null > /tmp/e4.out
$QWEN --worktree e4-test "say hi" --approval-mode izn --output-format json 2>/dev/null > /tmp/e4.out
ls -d "$TEST_DIR/.qwen/worktrees/e4-test"
ls "$TEST_DIR/.qwen/worktrees/e4-test/does-not-exist" 2>/dev/null && echo "UNEXPECTED"
```
Expand All @@ -418,7 +418,7 @@ mkdir -p "$TEST_DIR/.qwen/worktrees/e5-test/node_modules"
echo "preexisting" > "$TEST_DIR/.qwen/worktrees/e5-test/node_modules/.marker"

# Force re-creation via EnterWorktreeTool (CLI would refuse "already exists")
$QWEN "use enter_worktree with name='e5-test' to retry" --approval-mode yolo 2>/dev/null
$QWEN "use enter_worktree with name='e5-test' to retry" --approval-mode izn 2>/dev/null
# either: tool errors out cleanly, OR symlink is skipped — both acceptable
test -f "$TEST_DIR/.qwen/worktrees/e5-test/node_modules/.marker" && echo "PASS: not overwritten"
```
Expand All @@ -433,7 +433,7 @@ cat > "$TEST_DIR/.qwen/settings.json" <<'EOF'
{ "worktree": { "symlinkDirectories": ["/etc", "../escape"] } }
EOF

$QWEN --worktree e6-test "say hi" --approval-mode yolo --output-format json 2>/dev/null > /tmp/e6.out
$QWEN --worktree e6-test "say hi" --approval-mode izn --output-format json 2>/dev/null > /tmp/e6.out
ls "$TEST_DIR/.qwen/worktrees/e6-test/" | head -10
```

Expand Down Expand Up @@ -461,7 +461,7 @@ PROJECT_ID=$(node -e "console.log(process.argv[1].replace(/[^a-zA-Z0-9]/g,'-'))"

```bash
$QWEN --worktree=#4174 "say hi" \
--approval-mode yolo --output-format json 2>/dev/null > /tmp/f1.out
--approval-mode izn --output-format json 2>/dev/null > /tmp/f1.out

ls -d "$TEST_DIR/.qwen/worktrees/pr-4174"
git -C "$TEST_DIR/.qwen/worktrees/pr-4174" rev-parse --abbrev-ref HEAD
Expand All @@ -477,7 +477,7 @@ git -C "$TEST_DIR/.qwen/worktrees/pr-4174" rev-parse --abbrev-ref HEAD

```bash
$QWEN --worktree "https://github.com/QwenLM/qwen-code/pull/4174" "say hi" \
--approval-mode yolo --output-format json 2>/dev/null > /tmp/f2.out
--approval-mode izn --output-format json 2>/dev/null > /tmp/f2.out

ls -d "$TEST_DIR/.qwen/worktrees/pr-4174"
```
Expand All @@ -488,7 +488,7 @@ ls -d "$TEST_DIR/.qwen/worktrees/pr-4174"

```bash
cd "$TEST_DIR" && git remote remove origin
$QWEN --worktree=#4174 "say hi" --approval-mode yolo --output-format json 2>/dev/null > /tmp/f3.out
$QWEN --worktree=#4174 "say hi" --approval-mode izn --output-format json 2>/dev/null > /tmp/f3.out
echo "exit=$?"
```

Expand All @@ -497,7 +497,7 @@ echo "exit=$?"
### F4: invalid PR number → fail-close

```bash
$QWEN --worktree=#999999999 "say hi" --approval-mode yolo --output-format json 2>/dev/null > /tmp/f4.out
$QWEN --worktree=#999999999 "say hi" --approval-mode izn --output-format json 2>/dev/null > /tmp/f4.out
echo "exit=$?"
```

Expand All @@ -507,7 +507,7 @@ echo "exit=$?"
### F5: malformed `#abc` falls through to slug validation

```bash
$QWEN --worktree=#abc "say hi" --approval-mode yolo --output-format json 2>/dev/null > /tmp/f5.out
$QWEN --worktree=#abc "say hi" --approval-mode izn --output-format json 2>/dev/null > /tmp/f5.out
echo "exit=$?"
```

Expand All @@ -522,7 +522,7 @@ cat > "$TEST_DIR/.qwen/settings.json" <<'EOF'
EOF
mkdir -p "$TEST_DIR/node_modules" && echo x > "$TEST_DIR/node_modules/.marker"

$QWEN --worktree=#4174 "say hi" --approval-mode yolo --output-format json 2>/dev/null > /dev/null
$QWEN --worktree=#4174 "say hi" --approval-mode izn --output-format json 2>/dev/null > /dev/null
readlink "$TEST_DIR/.qwen/worktrees/pr-4174/node_modules"
```

Expand All @@ -543,7 +543,7 @@ readlink "$TEST_DIR/.qwen/worktrees/pr-4174/node_modules"
```bash
SESSION_ID=$(uuidgen)
tmux new-session -d -s g1 -x 200 -y 50 \
"cd $TEST_DIR && $QWEN --worktree g1-test --session-id $SESSION_ID --approval-mode yolo 2>&1 | tee /tmp/g1-stderr.out"
"cd $TEST_DIR && $QWEN --worktree g1-test --session-id $SESSION_ID --approval-mode izn 2>&1 | tee /tmp/g1-stderr.out"
sleep 3
tmux send-keys -t g1 "use the write_file tool to create file 'work.txt' with content 'phase d test'"
sleep 0.3; tmux send-keys -t g1 Enter
Expand All @@ -559,7 +559,7 @@ cat "$TEST_DIR/.qwen/worktrees/g1-test/work.txt"

# Resume reattaches
tmux new-session -d -s g1b -x 200 -y 50 \
"cd $TEST_DIR && $QWEN --resume $SESSION_ID --approval-mode yolo"
"cd $TEST_DIR && $QWEN --resume $SESSION_ID --approval-mode izn"
sleep 4
tmux capture-pane -t g1b -p -S -50 | grep -E "⎇ worktree-g1-test|Resumed"
tmux kill-session -t g1b
Expand All @@ -585,7 +585,7 @@ EOF
cd "$TEST_DIR"

$QWEN --worktree g2-test --mcp-config ./mcp.json "say hi" \
--approval-mode yolo --output-format json 2>/dev/null > /tmp/g2.out
--approval-mode izn --output-format json 2>/dev/null > /tmp/g2.out
echo "exit=$?"
jq -r '.[] | select(.type=="result") | .result' < /tmp/g2.out | head -3
```
Expand Down Expand Up @@ -662,7 +662,7 @@ implementation.**

| Group | Result | Notes |
| ---------------------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| A1 (bare flag) | ✅ (with doc tip) | yargs consumes the next positional as the slug value when user passes `qwen --worktree "say hi"`; quickstart now tells users to use `=` form or put the prompt before the flag. Auto-slug feature itself confirmed via `qwen --worktree --approval-mode yolo "say hi"` → slug `bright-elm-8a4c12`, init `.cwd` ends with `.qwen/worktrees/<auto-slug>`. |
| A1 (bare flag) | ✅ (with doc tip) | yargs consumes the next positional as the slug value when user passes `qwen --worktree "say hi"`; quickstart now tells users to use `=` form or put the prompt before the flag. Auto-slug feature itself confirmed via `qwen --worktree --approval-mode izn "say hi"` → slug `bright-elm-8a4c12`, init `.cwd` ends with `.qwen/worktrees/<auto-slug>`. |
| A2 (explicit slug) | ✅ | dir `.qwen/worktrees/my-feature` + branch `worktree-my-feature` |
| A3 (= form) | ✅ | identical to A2 |
| A4 (invalid slug) | ✅ | exit=1, message: `Worktree name may only contain letters, digits, dots, underscores, and hyphens.`, no worktree dir |
Expand Down
5 changes: 1 addition & 4 deletions docs/users/configuration/_meta.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
export default {
settings: 'Settings',
auth: 'Authentication',
memory: {
display: 'hidden',
},
'hopcode-ignore': 'Ignoring Files',
'qwen-ignore': 'Ignoring Files',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check for branding consistency in related files
fd -e md -e ts -e json . docs/users/configuration/ | xargs rg -l "qwen-ignore|qwen_ignore|qwenignore" -i

# Verify the actual filename
fd "ignore" docs/users/configuration/

Repository: TaimoorSiddiquiOfficial/HopCode

Length of output: 152


Fix incorrect branding key in docs/users/configuration/_meta.ts

docs/users/configuration/_meta.ts contains 'qwen-ignore', but the corresponding doc file is docs/users/configuration/hopcode-ignore.md, so the branding substitution is mismatched/reversed and will likely break navigation/route mapping.

🔧 Proposed fix
-  'qwen-ignore': 'Ignoring Files',
+  'hopcode-ignore': 'Ignoring Files',
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
'qwen-ignore': 'Ignoring Files',
'hopcode-ignore': 'Ignoring Files',
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/users/configuration/_meta.ts` at line 4, The branding key 'qwen-ignore'
in the exported metadata map should be renamed to match the actual doc filename
'hopcode-ignore.md'; update the key in docs/users/configuration/_meta.ts from
'qwen-ignore' to 'hopcode-ignore' (where the object entry currently reads
'qwen-ignore': 'Ignoring Files') so the branding/substitution and route mapping
align with the hopcode-ignore.md document.

'trusted-folders': 'Trusted Folders',
themes: 'Themes',
};
Loading
Loading