Skip to content

Commit 6d1e1cd

Browse files
committed
Update napkin notes for overflow/PR workflow
1 parent 7a3703e commit 6d1e1cd

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.claude/napkin.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@
3232
- Dev-only third-party scripts should be opt-in; avoid `beforeInteractive` for non-critical tooling (e.g., `react-grab`)
3333
| 2026-02-13 | self | Assumed `request.json()` in Convex HTTP actions returned typed JSON; TS now treats it as `unknown` | Add runtime type guards (or explicit schema validation) before accessing webhook payload fields |
3434
- Convex `httpAction` webhook handlers are safer with explicit type guards before deriving event keys (`object_type`, `aspect_type`) from `request.json()`
35+
- `apps/web` dev script runs `@react-grab/cursor` before `next dev`; this can create behavior differences vs production. Prefer validating layout bugs with `next build && next start` too.
36+
- Overflow debug scripts that add `window.scrollY` to fixed-position elements can produce misleading `top/bottom` values; filter out `position: fixed` when diagnosing document-flow overflow.
37+
- When user asks to branch with dirty worktree, preserve unrelated local modifications and scope edits to requested files only.
38+
| 2026-02-13 | self | Forgot to quote path containing parentheses (`(marketing)`) so zsh globbing failed | Quote paths with `()`, `[]`, and other glob chars in shell commands |
39+
- If user asks to open a PR, commit only task-relevant files and keep unrelated dirty files unstaged.
40+
| 2026-02-13 | self | Used backticks inside a double-quoted `gh pr create --body` string, triggering shell command substitution and noisy side effects | Use a heredoc/file for PR body or avoid backticks in shell-quoted strings |
41+
## User Preferences
42+
- Always commit `.claude/napkin.md` with related task commits.

0 commit comments

Comments
 (0)