#can't update or build

1 messages · Page 1 of 1 (latest)

paper hornet
#

hello and thank you
I had some unmerged files i did not need but were blocking the update so i did git reset --hard origin/main and now update fails like so:

"pnpm clawdbot update

clawdbot@2026.1.20-2 clawdbot /Users/roy/Documents/Projects/clawdbot
node scripts/run-node.mjs update

[clawdbot] Building TypeScript (dist is stale).
 ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  Command "tsgo" not found

Did you mean "pnpm exec tsc"?
 ELIFECYCLE  Command failed with exit code 254."

I tried removing the dist folder and rebuilding but pnpm build now gives this error:

"pnpm build

clawdbot@2026.1.20-2 build /Users/roy/Documents/Projects/clawdbot
tsc -p tsconfig.json && node --import tsx scripts/canvas-a2ui-copy.ts && node --import tsx scripts/copy-hook-metadata.ts && node --import tsx scripts/write-build-info.ts

src/tui/components/custom-editor.ts:3:8 - error TS2724: '"@mariozechner/pi-tui"' has no exported member named 'EditorOptions'. Did you mean 'EditorAction'?

3 type EditorOptions,
~~~~~~~~~~~~~

src/tui/components/custom-editor.ts:23:16 - error TS2554: Expected 1 arguments, but got 3.

23 super(tui, theme, options);
~~~~~~~~~~~~~~

Found 2 errors in the same file, starting at: src/tui/components/custom-editor.ts:3

ELIFECYCLE  Command failed with exit code 1."

modern lynxBOT
# paper hornet hello and thank you I had some unmerged files i did not need but were blocking t...

This looks like a dependency mismatch issue after the hard reset. Here's what to try:

  1. First, run a clean install:

    rm -rf node_modules pnpm-lock.yaml && pnpm install
    
  2. If that doesn't work, check your pi-tui dependency:
    The error about EditorOptions suggests @mariozechner/pi-tui may have updated. Check your package.json:

    grep -A5 "pi-tui" package.json
    

    You may need to pin the version or update the code to match the new API.

  3. For the tsgo issue: If pnpm install doesn't fix it, check if there's a tsgo script in package.json that should exist.

#

The hard reset likely left you with mismatched dependency versions vs what's actually in the code. A clean reinstall usually resolves this.

If you're still stuck, share the output of:

cat package.json | grep -A2 "pi-tui"
paper hornet
#

it worked but now when running update i'm still getting "Skipped: working directory has uncommitted changes. Commit or stash them first."

and git status
On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: pnpm-lock.yaml

Untracked files:
(use "git add <file>..." to include in what will be committed)
Peekaboo/

modern lynxBOT
# paper hornet it worked but now when running update i'm still getting "Skipped: working direct...

The update command checks for uncommitted changes. You have two options:

Quick fix - stash the lock file, run update, then restore:

git stash push pnpm-lock.yaml -m "temp stash for update"
pnpm clawdbot update
git stash pop

Or commit it first:

git add pnpm-lock.yaml && git commit -m "chore: update lock file"
pnpm clawdbot update

The Peekaboo/ folder is untracked so it won't interfere. Both approaches work!

paper hornet
#

still getting issues i think due to Peekaboo:

Update Result: SKIPPED
Root: /Users/roy/Documents/Projects/clawdbot
Reason: dirty
Before: 2026.1.20-2

Total time: 39ms
Skipped: working directory has uncommitted changes. Commit or stash them first.
roy@Roys-MacBook-Air clawdbot % git status
On branch main
Your branch is up to date with 'origin/main'.

Untracked files:
(use "git add <file>..." to include in what will be committed)
Peekaboo/

modern lynxBOT
paper hornet
#

did the second option now getting a new complaint about gitignore

Skipped: working directory has uncommitted changes. Commit or stash them first.
roy@Roys-MacBook-Air clawdbot % git status
On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: .gitignore

modern lynxBOT
paper hornet
#

i ended up moving Peekaboo out - thank you buddy