nandi/oripublic Fork 0
ca7e020
Commits
Clone
git clone https://git.rickub.com/nandi/ori.git
git clone ssh://git@rickub.com/nandi/ori.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

forked from bots-garden/ori

🛟 Updated.

k33g committed 2026-09-18T01:40:42+02:00 Browse files
ca7e020 parent: 34e69b5
added .memory/handoffs/2026-09-18-git-push-hang.md +23 -0
new file mode 100644
@@ -0,0 +1,23 @@
1+# 2026-09-18 — First push to origin hangs
2+
3+## Where we stopped
4+
5+`main` (34e69b5) has never been pushed; the remote repo `bots-garden/ori` on git.rickub.com exists but is empty. Diagnosis done, fix **not applied** — the user chooses.
6+
7+## Root cause
8+
9+- HTTPS remote + 401 on push + no keychain credential ⇒ git prompts for a password.
10+- Sessions started from VSCodium's integrated terminal export `GIT_ASKPASS=/Applications/VSCodium.app/.../askpass.sh`, so the prompt goes to a VSCodium input box, not the terminal. From a non-interactive context (Claude Code Bash tool, scripts) it blocks indefinitely.
11+
12+## Options for the next step
13+
14+1. **SSH remote (recommended, verified working)**:
15+ `git remote set-url origin git@git.rickub.com:bots-garden/ori.git` then `git push -u origin main`.
16+ The local key is already authorised; `ssh -T git@git.rickub.com` answers "rickub: this endpoint serves git only".
17+2. **Keep HTTPS**: run `GIT_ASKPASS= git push -u origin main` in a real terminal, answer the prompts once; `credential.helper=osxkeychain` (global, /opt/homebrew/etc/gitconfig) will remember them.
18+
19+## Traps
20+
21+- macOS has no `timeout`; use `perl -e 'alarm N; exec @ARGV' <cmd>` to guard hanging git calls.
22+- Killing a hung `git push` leaves `git-remote-https` + `askpass.sh` orphans (ppid 1); check with `ps -axo pid,ppid,command | grep askpass` and kill them.
23+- Also push `feat/acp-webapp` if the branch history is wanted on the server (only `main` was in scope).
new file mode 100644
@@ -0,0 +1,23 @@
1+# 2026-09-18 — First push to origin hangs
2+
3+## Where we stopped
4+
5+`main` (34e69b5) has never been pushed; the remote repo `bots-garden/ori` on git.rickub.com exists but is empty. Diagnosis done, fix **not applied** — the user chooses.
6+
7+## Root cause
8+
9+- HTTPS remote + 401 on push + no keychain credential ⇒ git prompts for a password.
10+- Sessions started from VSCodium's integrated terminal export `GIT_ASKPASS=/Applications/VSCodium.app/.../askpass.sh`, so the prompt goes to a VSCodium input box, not the terminal. From a non-interactive context (Claude Code Bash tool, scripts) it blocks indefinitely.
11+
12+## Options for the next step
13+
14+1. **SSH remote (recommended, verified working)**:
15+ `git remote set-url origin git@git.rickub.com:bots-garden/ori.git` then `git push -u origin main`.
16+ The local key is already authorised; `ssh -T git@git.rickub.com` answers "rickub: this endpoint serves git only".
17+2. **Keep HTTPS**: run `GIT_ASKPASS= git push -u origin main` in a real terminal, answer the prompts once; `credential.helper=osxkeychain` (global, /opt/homebrew/etc/gitconfig) will remember them.
18+
19+## Traps
20+
21+- macOS has no `timeout`; use `perl -e 'alarm N; exec @ARGV' <cmd>` to guard hanging git calls.
22+- Killing a hung `git push` leaves `git-remote-https` + `askpass.sh` orphans (ppid 1); check with `ps -axo pid,ppid,command | grep askpass` and kill them.
23+- Also push `feat/acp-webapp` if the branch history is wanted on the server (only `main` was in scope).
modified .memory/history.md +7 -0
@@ -130,3 +130,10 @@
130130 ## 2026-09-17 — Commit and merge into main
131131
132132 - User asked to merge `feat/acp-webapp` into `main`. Everything since 2434cc7 committed as `76d62ac` (203 files, +21 595 lines), excluding `hello.md` (test artefact) and `.claude/settings.local.json` (local permissions). `main` fast-forwarded (merge base was 4edda86, no divergence). Not pushed to `origin` (git.rickub.com) — not asked. This memory update itself is a follow-up commit on main.
133+
134+## 2026-09-18 — Diagnose `git push --set-upstream origin main` hanging
135+
136+- **Asked**: why the first push to `origin` never finishes. Diagnostic only; no code or config changed.
137+- **Finding**: `origin` is `https://git.rickub.com/bots-garden/ori.git`; the server answers 401 on `git-receive-pack`, the macOS keychain has no entry for that host, and the session (launched from VSCodium's terminal) exports `GIT_ASKPASS` → VSCodium's `askpass.sh`. Git therefore hands the password prompt to VSCodium's input box, which is easy to miss, so the push waits forever. Confirmed with `ps`: `git-remote-https``askpass.sh "Password for 'https://git.rickub.com'"` blocked.
138+- **Also verified**: network fine (DNS, 443, 22 all open); anonymous read over HTTPS works; SSH key `~/.ssh/id_ed25519` is accepted by `git@git.rickub.com` (server replies "serves git only"); `git ls-remote` over SSH succeeds and shows the remote repo is **empty** (no branches yet). Local `main` = 34e69b5.
139+- **Recommendation left to the user**: switch `origin` to `git@git.rickub.com:bots-garden/ori.git` (no password, key already trusted), or run the push in a plain terminal with `GIT_ASKPASS` unset so osxkeychain stores the credentials. Not applied — awaiting the user's choice.
@@ -130,3 +130,10 @@
130 ## 2026-09-17 — Commit and merge into main130 ## 2026-09-17 — Commit and merge into main
131 131
132 - User asked to merge `feat/acp-webapp` into `main`. Everything since 2434cc7 committed as `76d62ac` (203 files, +21 595 lines), excluding `hello.md` (test artefact) and `.claude/settings.local.json` (local permissions). `main` fast-forwarded (merge base was 4edda86, no divergence). Not pushed to `origin` (git.rickub.com) — not asked. This memory update itself is a follow-up commit on main.132 - User asked to merge `feat/acp-webapp` into `main`. Everything since 2434cc7 committed as `76d62ac` (203 files, +21 595 lines), excluding `hello.md` (test artefact) and `.claude/settings.local.json` (local permissions). `main` fast-forwarded (merge base was 4edda86, no divergence). Not pushed to `origin` (git.rickub.com) — not asked. This memory update itself is a follow-up commit on main.
133+
134+## 2026-09-18 — Diagnose `git push --set-upstream origin main` hanging
135+
136+- **Asked**: why the first push to `origin` never finishes. Diagnostic only; no code or config changed.
137+- **Finding**: `origin` is `https://git.rickub.com/bots-garden/ori.git`; the server answers 401 on `git-receive-pack`, the macOS keychain has no entry for that host, and the session (launched from VSCodium's terminal) exports `GIT_ASKPASS` → VSCodium's `askpass.sh`. Git therefore hands the password prompt to VSCodium's input box, which is easy to miss, so the push waits forever. Confirmed with `ps`: `git-remote-https``askpass.sh "Password for 'https://git.rickub.com'"` blocked.
138+- **Also verified**: network fine (DNS, 443, 22 all open); anonymous read over HTTPS works; SSH key `~/.ssh/id_ed25519` is accepted by `git@git.rickub.com` (server replies "serves git only"); `git ls-remote` over SSH succeeds and shows the remote repo is **empty** (no branches yet). Local `main` = 34e69b5.
139+- **Recommendation left to the user**: switch `origin` to `git@git.rickub.com:bots-garden/ori.git` (no password, key already trusted), or run the push in a plain terminal with `GIT_ASKPASS` unset so osxkeychain stores the credentials. Not applied — awaiting the user's choice.
modified quickstart.md +8 -5
@@ -50,13 +50,19 @@ Only needed if you maintain the template: `./template/build.sh` builds and pushe
5050
5151 Full guide: [docs/en/how-to/run-in-a-sandbox.md](docs/en/how-to/run-in-a-sandbox.md) · [docs/fr/how-to/run-in-a-sandbox.md](docs/fr/how-to/run-in-a-sandbox.md)
5252
53+---
5354
54-
55+```bash
56+cd ori-desktop
57+wails build
58+xattr -cr build/bin/ori-desktop.app
5559 ```
60+
61+```bash
5662 sbx run -d claude . \
5763 --template k33g/ori:0.0.1 \
5864 --kit ./kits/ori \
59- --name ori \
65+ --name ori1 \
6066 -p 8888:8888
6167
6268 sbx run -d claude . \
@@ -66,6 +72,3 @@ sbx run -d claude . \
6672 -p 5555:8888
6773 ```
6874
69-cd ori-desktop
70-wails build
71- xattr -cr build/bin/ori-desktop.app
\ No newline at end of file
@@ -50,13 +50,19 @@ Only needed if you maintain the template: `./template/build.sh` builds and pushe
50 50
51 Full guide: [docs/en/how-to/run-in-a-sandbox.md](docs/en/how-to/run-in-a-sandbox.md) · [docs/fr/how-to/run-in-a-sandbox.md](docs/fr/how-to/run-in-a-sandbox.md)51 Full guide: [docs/en/how-to/run-in-a-sandbox.md](docs/en/how-to/run-in-a-sandbox.md) · [docs/fr/how-to/run-in-a-sandbox.md](docs/fr/how-to/run-in-a-sandbox.md)
52 52
53+---
53 54
54-55+```bash
56+cd ori-desktop
57+wails build
58+xattr -cr build/bin/ori-desktop.app
55 ```59 ```
60+
61+```bash
56 sbx run -d claude . \62 sbx run -d claude . \
57 --template k33g/ori:0.0.1 \63 --template k33g/ori:0.0.1 \
58 --kit ./kits/ori \64 --kit ./kits/ori \
59- --name ori \65+ --name ori1 \
60 -p 8888:888866 -p 8888:8888
61 67
62 sbx run -d claude . \68 sbx run -d claude . \
@@ -66,6 +72,3 @@ sbx run -d claude . \
66 -p 5555:888872 -p 5555:8888
67 ```73 ```
68 74
69-cd ori-desktop
70-wails build
71- xattr -cr build/bin/ori-desktop.app
\ No newline at end of file\ No newline at end of file