You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c16b740
Browse filesBrowse the repository at this point in the historyBrowse files
Merge remote-tracking branch 'origin/main' into dsa/support-codex
Conflicts:
- docs/content/claude-code.md / skills/worktrunk/reference/claude-code.md:
Combined the Codex framing from this branch with main's new Claude-only
/wt-switch-create command section. Worktree isolation and
/wt-switch-create are now under "Claude Code only" headings, and the
Codex callout remains.
- tests/common/mod.rs: dropped the dead `add_filter` env-stripping block
(per tests/CLAUDE.md, `add_filter` does not work on the YAML env block;
main already redacts LLVM_PROFILE_FILE / CARGO_LLVM_COV* via
`add_redaction` in `add_standard_env_redactions`). Kept main's trailing
`add_placeholder_ansi_strip_filter(&mut settings)` call.
Also regenerated tests/snapshots/integration__integration_tests__config_show__config_show_codex_available.snap
to pick up main's new [BUILD_MODE] and [LLVM_PROFILE_FILE] redactions.
2.**Activity tracking** — Shows which branches have active Claude sessions via indicators in `wt list`
9
+
3.**`/wt-switch-create` command** — Creates a worktrunk worktree and moves the current Claude session into it
9
10
10
11
## Examples
11
12
@@ -22,3 +23,7 @@ The configuration skill guides through configuring an AI tool (Claude Code, Code
22
23
**Add pre-start hooks to run npm install automatically**
23
24
24
25
The skill configures `.config/wt.toml` with project hooks. Pre-start hooks run when creating worktrees, pre-merge hooks validate before merging.
26
+
27
+
**Start work in a fresh worktree**
28
+
29
+
`/wt-switch-create fix-auth Investigate the 5-minute session timeout` creates a `fix-auth` worktree in worktrunk's normal sibling layout (`<repo>.fix-auth/`), switches the session into it, and starts the task there. On session exit the worktree is offered for removal — a worktree with uncommitted changes is kept rather than removed.
This bumps `Cargo.toml`, `Cargo.lock`, and applies `pre-release-replacements` (e.g., `SKILL.md`'s `version:` line), then auto-commits. We'll reset this commit in step 9 to fold in the CHANGELOG.
23
-
24
-
Then sync the SHA-256 digest of `SKILL.md` in `docs/static/.well-known/agent-skills/index.json` — `cargo-release` doesn't know that file derives from `SKILL.md`, so it stays stale until the docs-sync test rewrites it:
25
-
```bash
26
-
cargo test --test integration test_docs_are_in_sync || cargo test --test integration test_docs_are_in_sync
27
-
```
28
-
The first run rewrites the digest and exits non-zero; the second confirms sync. The regenerated `index.json` is then picked up by `git add -A` in step 9.
22
+
This bumps `Cargo.toml` and `Cargo.lock`, then auto-commits. We'll reset this commit in step 9 to fold in the CHANGELOG.
29
23
8.**Update CHANGELOG**: Add `## X.Y.Z` section at top with changes (see MANDATORY verification below)
30
24
9.**Commit**: Reset the auto-commit from step 7, stage everything, and create the final release commit:
spent ~90 min in a wait-and-rerun loop after dismissing approval over an
133
-
unrelated `step_prune` Windows flake.
137
+
clears, or merge regardless if the failure is clearly a flake.
134
138
135
139
The codecov-failure dismissal pattern is different and remains correct:
136
140
`CLAUDE.md` requires explicit user approval before merging with failing
@@ -180,6 +184,28 @@ Suggest an alias when:
180
184
4. Link to the [aliases docs](https://worktrunk.dev/step/#aliases) and
181
185
[tips & patterns](https://worktrunk.dev/tips-patterns/) for further recipes
182
186
187
+
### Don't fix tests by adding skip guards
188
+
189
+
When a test fails because production code or test setup can't handle some
190
+
scenario, fix the production code or rework the test setup. Don't add an
191
+
early-return skip — that removes the safety net while looking like a fix.
192
+
If a triage fix reaches for `let Ok(_) = ... else { return };`, a newly-added
193
+
`if !path.exists() { return; }`, or a fresh `#[ignore]`, stop and ask what
194
+
production behavior is actually broken.
195
+
196
+
If the test relies on inherited environment (process CWD, ambient env
197
+
vars), rework it to set up its own — most worktrunk tests already do this
198
+
via `TestRepo::with_initial_commit()` plus a tempdir.
199
+
200
+
### Same-root-cause-class triage
201
+
202
+
The "work on the existing PR if it addresses the same problem" rule keys
203
+
on the same test. It doesn't catch a different test failing for the same
204
+
underlying reason. Group failing tests by root-cause class before writing
205
+
a fix; if an outstanding PR addresses any test in the class, wait for it
206
+
to merge and re-run, then mirror its approach for any sites still failing
207
+
rather than opening a parallel PR with a weaker fix.
208
+
183
209
## Weekly Maintenance: MSRV & Toolchain
184
210
185
211
Bump both MSRV and the development toolchain to **latest stable − 1**. When
@@ -211,8 +237,8 @@ Pinned third-party versions in CI are invisible to Dependabot — it follows `Ca
211
237
212
238
For each weekly run, check upstream and bump:
213
239
214
-
-**`baptiste0928/cargo-install@v3` blocks** in `.github/workflows/ci.yaml` and `.github/actions/{test,claude}-setup/action.yaml` — every `version: "=X.Y.Z"` against `cargo info <crate>`. Today: `cargo-insta`, `cargo-nextest`, `cargo-llvm-cov`, `cargo-msrv`, `cargo-udeps`, `lychee`, `worktrunk`. The `cargo-affected` install has no version pin (follows default branch) — leave it alone. Verify each crate's `rust-version` against the pinned toolchain and note compatibility in the PR body (see PR #1657 for the format).
215
-
-**`hustcer/setup-nu@v3`**`version:` input — latest from `gh api repos/nushell/nushell/releases/latest --jq '.tag_name'`. Three call sites: `ci.yaml` (`benchmarks`, `code-coverage`) and `actions/test-setup/action.yaml`.
240
+
-**`baptiste0928/cargo-install@v3` blocks** in `.github/workflows/ci.yaml`, `.github/workflows/nightly.yaml`, and `.github/actions/{test,claude}-setup/action.yaml` — every `version: "=X.Y.Z"` against `cargo info <crate>`. Today: `cargo-insta`, `cargo-nextest`, `cargo-llvm-cov`, `cargo-msrv`, `cargo-udeps`, `lychee`, `worktrunk`. The `cargo-affected` install has no version pin (follows default branch) — leave it alone. Verify each crate's `rust-version` against the pinned toolchain and note compatibility in the PR body (see PR #1657 for the format).
241
+
-**`hustcer/setup-nu@v3`**`version:` input — latest from `gh api repos/nushell/nushell/releases/latest --jq '.tag_name'`. Three call sites: `ci.yaml` (`code-coverage`), `nightly.yaml` (`benchmarks`), and `actions/test-setup/action.yaml`.
216
242
-**`taiki-e/[email protected]`**`tool: zola@<ver>` in the `check-docs` job — latest from `gh api repos/getzola/zola/releases/latest --jq '.tag_name'`.
-**Legitimate** (different cwd, different ref form that can't be normalized,
245
271
intentional double-call across phases) — note in the response and move on.
246
272
-**Cache miss** (same logical operation should hit cache but doesn't) —
247
-
open an issue or fix it. Past examples: `merge_base("main", "<sha>")` vs
273
+
open an issue or fix it. Common shapes: `merge_base("main", "<sha>")` vs
248
274
`merge_base("main", "branch")` keying separately;
249
275
`worktree_at(cwd)` vs `worktree_at(porcelain_path)` not canonicalizing.
250
276
251
277
Baseline: ~29 git subprocesses per render on a clean tree; a jump above
252
278
~32 warrants investigation.
253
279
280
+
## Weekly Maintenance: LLM Model Names in Docs
281
+
282
+
Grep for current Claude and Codex pins across every tracked file:
283
+
284
+
```bash
285
+
git grep -niE "claude|codex"
286
+
```
287
+
288
+
Check the latest IDs at <https://docs.anthropic.com/en/docs/about-claude/models> and <https://developers.openai.com/codex/models>. The recommended commit-message commands should use the most recent fastest model from each vendor (Haiku for Anthropic, the smallest current Codex variant for OpenAI).
289
+
254
290
## README Date Check
255
291
256
292
The README blockquote opens with a month+year (e.g., "**April 2026**"). During daily
Copy file name to clipboardExpand all lines: .claude/skills/writing-user-outputs/SKILL.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
name: writing-user-outputs
3
-
description: CLI output formatting standards for worktrunk. Use when writing user-facing messages, error handling, progress output, hints, warnings, or working with the output system.
3
+
description: CLI output formatting standards for worktrunk. Load before editing any code that calls warning_message, hint_message, error_message, info_message, eprintln, or println, or that produces strings the user will see (CLI help, progress UI, snapshot text). Documents ANSI color nesting rules, message patterns, and output system architecture.
0 commit comments