Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.
Rust ai-agentsai-assistantai-botautomationbotbots-teamchatbotclaude-duetgrokgrok-botgrok-bot-alternativeharnessllmmulti-agentopenai-dotsopenbotpersonal-agentrustself-hostedselfhosted-ai
Dev desk: "Needs git on the server" for a watched repo that lost git; docs for O4 and O5 (#374)
Oleksandr Ivanchenko6d09199396f3
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 11057e8a..40a371d0 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -25,6 +25,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).- **Connect in the Bitwarden form works again.** Inside the GitHub, email and approvals forms, Connect (or Enter) reloaded the page and sent nothing; it now connects. (#371)- **Connecting Bitwarden works with accounts whose key salt isn't their email.** kwant now uses the salt Bitwarden's server reports, and also reads the account key from Bitwarden's newer login reply. Each failed connect or unlock logs one line with what went wrong, the HTTP status and the server's host. That line never includes the email, password or codes. (#370)- A custom server's models that have no name now show their id in the model picker instead of "[redacted]" (#365).+- A watched repo whose server lost git now reads "Needs git on the server", with the install tip, instead of "Can't read it right now. Trying again." (#374)## [Mac 0.7.2] - 2026-11-06diff --git a/docs/dev-mode.md b/docs/dev-mode.mdindex b36f7e7c..2ae88889 100644--- a/docs/dev-mode.md+++ b/docs/dev-mode.md@@ -155,7 +155,13 @@ log; URL userinfo is stripped before anything else. http(s) and git:// addressesssh keeps a user name (`ssh://deploy@host/x.git`, `deploy@host:x.git`) and never a password, and`git_url` is never logged. Each call has no terminal prompt, a timeout,`nice` and its own process group, which is killed when it runs over. The Docker image installs git-and openssh-client. Without git 2.31+, the status is `no_git`.+and openssh-client. Without git 2.31+, the status is `no_git`, and a repo that was already watched+reads "Needs git on the server" until git is back.++The team's repo link itself is kept as typed. A link like `https://user:token@host/…` is stored that+way, and `GET /api/teams` returns it with the token in it, as 0.7.2 did for GitHub links. Git never+gets that token, since the userinfo is stripped before the fetch, so it is better left out: use the+server's SSH key or a git credential helper instead. A later release will strip it when it's saved.A remote read from a team's folder or repo link is fetched only over https, http, ssh or git, andnever from this machine or a link-local address (`localhost`, `127.0.0.0/8`, `::1`, `169.254.0.0/16`,@@ -205,7 +211,10 @@ read every repo on this server. A sandboxed local read is planned for 0.7.4.**Mirror size.** A mirror is a full bare copy of the repo. A fetch may not write any file past 1 GB(`RLIMIT_FSIZE`, with what it fetches kept as one pack), so a huge or hostile remote stops at the caprather than after it. The limit is per file, and the pack, its `.idx` and its `.rev` are each-limited separately, so one fetch can briefly write about 3× the cap before it is stopped. A fetch stopped there, or a mirror over 1 GB on disk after its fetch, is deleted and a `<mirror>.too-big` note is left beside it; the row reads `error` with "This repo+limited separately, so one fetch can briefly write about 3× the cap before it is stopped. Everything+git starts during a fetch inherits the limit, including the admin's `GIT_SSH`/`GIT_SSH_COMMAND` and+credential helpers: a wrapper that writes a log file past 1 GB stops the fetch, and the repo reads as+too big. A plain `ssh` only writes `known_hosts`. A fetch stopped there, or a mirror over 1 GB on disk after its fetch, is deleted and a `<mirror>.too-big` note is left beside it; the row reads `error` with "This repois too big for Dev mode to read (over 1 GB)." and `poll_code: "too_big"` (a GitHub row falls back tothe API instead). One answer from git over 16 MB (a commit touching a vast number of files) reads`error` with "This repo is too big for Dev mode to read." and the same `poll_code`. The repodiff --git a/frontend/src/devMode.ts b/frontend/src/devMode.tsindex 420aec2e..80214acd 100644--- a/frontend/src/devMode.ts+++ b/frontend/src/devMode.ts@@ -343,6 +343,10 @@ export const gitTip = (r: Pick<DevRepo, 'from' | 'team' | 'branch'>) => {const TOO_BIG_ERROR = /too big for Dev mode to read/i;const isTooBig = (r: DevRepo) => r.status === 'error' && (r.poll_code === 'too_big' || TOO_BIG_ERROR.test(r.poll_error ?? ''));export const TOO_BIG = 'Too big to read';+/** O10 (Rigel, qa-073): a row that was already watched when git went missing comes back as `error` with the server's+ * "Needs git 2.31 or newer on the server." (no poll_code for it), so it reads like `no_git`, not "Trying again". */+const NEEDS_GIT_ERROR = /needs git 2\.31/i;+const isNeedsGit = (r: DevRepo) => r.status === 'error' && !isTooBig(r) && NEEDS_GIT_ERROR.test(r.poll_error ?? '');/** §1c no-number sentence: the quiet line when the server sends no words. The size is only ever the server's own* words (the 1 GB cap says "(over 1 GB)", a single git answer over 16 MB doesn't), never matched or added here. */export const TOO_BIG_SENTENCE = 'This repo is too big for Dev mode to read.';@@ -354,7 +358,7 @@ export const cantUseTip = (team: string | null) =>`Dev mode only reads https, ssh or git addresses on another computer. This one points at this server, or isn’t a git address. Change it in ${team ?? 'the team'}’s settings or in the folder’s git remote.`;/** A row's quiet second line (Mira's tooltip text, shown so keyboard, touch and screen readers get it too). */export const repoNote = (r: DevRepo, hint: string | null = null): string | null => {- if (r.status === 'no_git') return noGitTip(hint);+ if (r.status === 'no_git' || isNeedsGit(r)) return noGitTip(hint);if (r.status === 'no_repo') return cantUseTip(r.team);if (isTooBig(r)) return tooBigNote(r);return r.provider === 'git' && r.status === 'watching' ? gitTip(r) : null;@@ -399,6 +403,7 @@ const rowState = (r: DevRepo, on = true): { state: string; led: Led } => {// A 0.7.1/0.7.2 server: a folder with no remote, or a host it doesn't read yet.return { state: r.from === 'local' || !r.host ? LOCAL_ONLY : hostNotRead(r.host), led: 'off' };case 'error':+ if (isNeedsGit(r)) return { state: NEEDS_GIT, led: 'warn' };return { state: isTooBig(r) ? TOO_BIG : CANT_READ, led: 'bad' };default:return { state: TOO_MANY, led: 'off' };@@ -426,7 +431,7 @@ const repoRow = (r: DevRepo, teams: DevTeamRef[], on = true, hint: string | null...rowState(r, on),origin: rowOrigin(r),teamNote: r.added_by !== 'hand' && r.team && (r.from === 'repo' || r.from === 'folder' || r.from === 'local') ? teamNoteText(r.team, r.from === 'local' ? 'folder' : r.from) : null,- title: r.status === 'error' ? (isTooBig(r) ? tooBigNote(r) : safeError(r.poll_error)) : null,+ title: r.status === 'error' && !isNeedsGit(r) ? (isTooBig(r) ? tooBigNote(r) : safeError(r.poll_error)) : null,note: repoNote(r, hint),action: rowAction(r),});diff --git a/frontend/src/passwordStore.ts b/frontend/src/passwordStore.tsindex d87bd512..a6e57d99 100644--- a/frontend/src/passwordStore.ts+++ b/frontend/src/passwordStore.ts@@ -267,7 +267,7 @@ export const storeApi = {* here (audit F-10), so it's blocked. */export const AUTOFILL_GAP_NOTE = {bitwarden: 'While a password is being filled into a page, a bot that can run commands can read it.',- local: 'Unless every space and bot is on “Ask before running commands”, any bot that can run commands could read passwords saved on this server, so they can’t be saved here: use Bitwarden.',+ local: 'Unless every space and bot is on “Ask before running commands”, any bot that can run commands could read passwords saved on this server, so Bitwarden is the safer place for them.',} as const;/** The note for a store; unknown counts as this server, the stricter one. */diff --git a/frontend/tests/approvalsNeedBitwarden.test.mjs b/frontend/tests/approvalsNeedBitwarden.test.mjsindex e3c6c146..a1f03fba 100644--- a/frontend/tests/approvalsNeedBitwarden.test.mjs+++ b/frontend/tests/approvalsNeedBitwarden.test.mjs@@ -39,7 +39,7 @@ const BW = st({ store: 'bitwarden', bitwarden: bw() });const BW_LEFTOVER = st({ store: 'bitwarden', bitwarden: bw(), local_count: 2 });const BW_LOCKED = st({ store: 'bitwarden', locked: true, bitwarden: bw({ unlocked: false }), local_count: 3 });const EXPOSED = st({ local_count: 3, approvals_off: true, exposed: true });-const LOCAL_NOTE = "Unless every space and bot is on “Ask before running commands”, any bot that can run commands could read passwords saved on this server, so they can't be saved here: use Bitwarden.";+const LOCAL_NOTE = "Unless every space and bot is on “Ask before running commands”, any bot that can run commands could read passwords saved on this server, so Bitwarden is the safer place for them.";const BW_NOTE = 'While a password is being filled into a page, a bot that can run commands can read it.';// ---------------------------------------------------------------- the modeldiff --git a/frontend/tests/devAnyGit.test.mjs b/frontend/tests/devAnyGit.test.mjsindex 06513c6f..89a76175 100644--- a/frontend/tests/devAnyGit.test.mjs+++ b/frontend/tests/devAnyGit.test.mjs@@ -292,3 +292,16 @@ test('no_git with 6dd0243’s full-sentence install_hint: one full stop, never tassert.doesNotMatch(tip, /\.\./);assert.equal(m.noGitTip('Install git 2.31 or newer on the server. '), NO_GIT_TIP);});++test('O10: a watched row whose git went missing reads "Needs git on the server", not "Trying again"', () => {+ // The server keeps the row and answers `error` with GitError::NoGit's sentence (no poll_code for it).+ const gone = { ...LAB, status: 'error', poll_code: null, poll_error: 'Needs git 2.31 or newer on the server.' };+ const s = state({ status: 'watching', install_hint: HINT, repos: [APP, gone] });+ const r = m.repoRows(s)[1];+ assert.deepEqual([r.state, r.led, r.note, r.title, r.action], ['Needs git on the server', 'warn', NO_GIT_TIP, null, null]);+ assert.equal(m.needsYouCount(s), 1);+ assert.deepEqual(texts(m.statusLine(state({ status: 'watching', install_hint: HINT, repos: [gone] })).parts), ['https://gitlab.example.test/demo/lab', ' · Needs git on the server']);+ // Any other error still reads as a passing problem, and too big still wins.+ assert.equal(m.repoRows(state({ repos: [APP, { ...LAB, status: 'error', poll_error: 'The repo’s host said no.' }] }))[1].state, 'Can’t read it right now. Trying again.');+ assert.equal(m.repoRows(state({ repos: [APP, { ...gone, poll_code: 'too_big' }] }))[1].state, 'Too big to read');+});