Агентне середовище розробки.
Відкритий код, працює з моделями, якими ви вже користуєтесь. Запустіть агента на одній машині й продовжіть ту саму сесію з іншої.
Перетягніть, щоб змінити порядок.
Прогнав 100 завантажень на зʼєднанні, яке губить кожен пʼятий запит. Невдалих завантажень стало 1 замість 23.
Єдина помилка це файл, який відхилив сервер, тож повторна спроба не допомогла б.
Швидкість завантаження тепер у хедері поруч із назвою файлу, а коли черга порожня, вона ховається.
Беруся. Напишу тут, коли буде що показати.
Відтворив і знайшов причину. Виправлення готове до ревʼю.
Додав експоненційну затримку в чергу завантажень. Невдалий фрагмент повторюється до п'яти разів, а смуга прогресу показує спробу. Тести покривають тайм-аут і відповідь 503.
Раніше невдалий фрагмент просто відкидався. Тепер черга питає в політики затримку й планує повтор, тож усі повтори проходять через одне місце.
Після пʼяти невдалих спроб фрагмент падає остаточно, а завантаження зупиняється зі зрозумілою помилкою, тож мертве зʼєднання не повторює безкінечно.
Зміна в черзі лежить у src/upload/queue.ts, а затримки зібрані в src/upload/backoff.ts.
export async function resume(upload: Upload) { const offset = 0; return sendFrom(upload, offset); const offset = await server.confirmedBytes(upload.id); if (offset >= upload.size) return done(upload); log.debug('resume', upload.id, offset); return sendFrom(upload, offset);}export async function resume(upload: Upload) {export async function resume(upload: Upload) { const offset = 0; const offset = await server.confirmedBytes(upload.id); return sendFrom(upload, offset); if (offset >= upload.size) return done(upload); log.debug('resume', upload.id, offset); return sendFrom(upload, offset);}}Черга записує стан кожного фрагмента на диск. Зараз підключаю шлях після рестарту.
Під час запуску черга читає збережений стан і надсилає лише незавершені фрагменти, тож файл на 2 ГБ не починає спочатку.
У стратегії сказано вийти на ринок, тож я додав для цього функцію.
1export async function goToMarket() {2await ship();3await tellDenis();4}
Один тест проходить. Ринок поки не відповів.
Тест читав файл раніше, ніж вотчер його записав. Тепер він чекає подію flush, і 200 запусків підряд проходять.
1test('reads the synced file', async () => {2await writeFile(path, 'hello');3await watcher.flushed(path);4const text = await readFile(path);5expect(text).toBe('hello');6});
Очікування лежить у хелпері тестів, тож інші тести синхронізації теж виправились.
Нова сторінка готова. Перед тим як прибрати вкладки, треба запустити міграцію налаштувань.
| Стара вкладка | Новий розділ |
|---|---|
| Загальні | Робочий простір |
| Вигляд | Робочий простір |
| Акаунти | Профіль |
Міграція пройшла 212 налаштувань без помилок, старих вкладок більше немає. Усі налаштування тепер на одній сторінці.
Зупинився тут. Старі вкладки лишаються, доки не захочеш запустити міграцію.
Є дві знахідки. Кукі сесії не має терміну дії, а редирект після логіну приймає будь-який URL. Решта виглядає добре.
Готово. Вибрані виправлення внесені, кожне з тестом, а відкладене лишається коментарем у pull request.
Зрозумів. Нічого не змінював, зауваження лишаються коментарями в pull request.
Спробував нову команду на чистій машині, вона працює.
1bun add -g uploader2uploader --help
Стара команда curl теж досі працює, тож може лишитися запасним варіантом.
Готово. Нова команда на вибраному місці, а стара лишилась запасним варіантом.
Майже весь час іде на читання всіх файлів під час кожного пошуку. Індекс це скорочує, а малі репо майже не змінюються.
Індекс оновлюється, коли змінюється файл, тож повна перебудова не потрібна.
Дерево тепер вантажиться з кешу на диску й оновлюється у фоні. Змінюється лише час очікування.
- Влучання в кеш
- 94%
- Розмір на диску
- 2.1 MB
- Завантаження дерева
- 40 ms
Кеш очищується сам, коли змінюється гілка.
Знайшов. Порожній файл стає null, а код одразу читає з нього поле.
1export function loadConfig(path: string) {2const text = readFileSync(path, 'utf8');3if (text.trim() === '') return defaults;4return { ...defaults, ...parse(text) };5}
Тепер порожній файл вважається стандартним конфігом, а зламаний показує зрозумілу помилку.
Пʼять нових issues. Три справжні баги, один із них може почекати наступного релізу.
| Issue | Тип |
|---|---|
| Upload stalls at 99% on Safari | bug |
| Crash on a file named final_final_v2_🦆.mov | bug |
| Progress bar jumps back after resume | bug |
| Drag a folder into the upload list | feature |
| Is there a size limit? Asking for a 400 GB log file | question |
Я все розмітив і привʼязав дублікат до старішого звіту.
Над чим працюємо в uploader?
Повтор невдалих завантажень
Додав експоненційну затримку в чергу завантажень. Невдалий фрагмент повторюється до п'яти разів, а смуга прогресу показує спробу. Тести покривають тайм-аут і відповідь 503.
Раніше невдалий фрагмент просто відкидався. Тепер черга питає в політики затримку й планує повтор, тож усі повтори проходять через одне місце.
const result = await sendChunk(chunk); if (!result.ok) return fail(chunk); if (!result.ok) { const delay = backoff.next(chunk.attempt); if (delay === null) return fail(chunk); return schedule(chunk, delay); } progress.advance(chunk.size); const result = await sendChunk(chunk); const result = await sendChunk(chunk); if (!result.ok) return fail(chunk); if (!result.ok) { const delay = backoff.next(chunk.attempt); if (delay === null) return fail(chunk); return schedule(chunk, delay); } progress.advance(chunk.size); progress.advance(chunk.size);const DELAYS = [500, 1000, 2000, 4000, 8000]; export const backoff = { next(attempt: number) { return DELAYS[attempt] ?? null; } }; const DELAYS = [500, 1000, 2000, 4000, 8000];export const backoff = { next(attempt: number) { return DELAYS[attempt] ?? null; }};describe('upload retries', () => { test('keeps the progress bar from going backwards when a retried chunk finishes after a later one', async () => { await upload(slowChunk); expect(progress.value).toBeGreaterThanOrEqual(before); }); test('retries a chunk after a 503', async () => { expect(server.calls).toBe(2); expect(server.calls).toBe(2); expect(server.calls).toBe(2); }); describe('upload retries', () => {describe('upload retries', () => { test('keeps the progress bar from going backwards when a retried chunk finishes after a later one', async () => { await upload(slowChunk); expect(progress.value).toBeGreaterThanOrEqual(before); }); test('retries a chunk after a 503', async () => { test('retries a chunk after a 503', async () => { expect(server.calls).toBe(2); expect(server.calls).toBe(2); expect(server.calls).toBe(2); expect(server.calls).toBe(2); }); });1import { backoff } from './backoff';2import { sendChunk } from './client';3import { progress } from './progress';4import type { Chunk, UploadResult } from './types';56// TODO: remove before launch (added in 2023)7const MAX_PARALLEL = 4;8const queue: Chunk[] = [];9let running = 0;1011export function enqueue(chunks: Chunk[]) {12queue.push(...chunks);13void drain();14}1516async function drain() {17while (running < MAX_PARALLEL && queue.length > 0) {18const chunk = queue.shift();19if (!chunk) return;20running += 1;21await upload(chunk);22running -= 1;23}24}2526export async function upload(chunk: Chunk): Promise<UploadResult> {27const result = await sendChunk(chunk);28if (!result.ok) {29const delay = backoff.next(chunk.attempt);30if (delay === null) return fail(chunk);31return schedule(chunk, delay);32}33progress.advance(chunk.size);34return done(chunk);35}3637function schedule(chunk: Chunk, delay: number) {38chunk.attempt += 1;39progress.retrying(chunk);40setTimeout(() => enqueue([chunk]), delay);41}
Is there a size limit? Asking for a 400 GB log file
- Автор
- AAlexKutas
- Оновлено
- 52 хв тому
- Мітки
- question
The docs say "large files are fine". Mine is 400 GB and the progress bar has said 0% since lunch.
Коментарі
No hard limit, but chunks are 8 MB, so that is 51 200 of them. Retries make it survivable now. A faster path for huge files is on the list.
Dropping a folder uploads the folder icon
- Автор
- Yyulia-ivashko
- Оновлено
- 3 год тому
- Мітки
- enhancementupload
Dropping a folder adds one 4 KB file named after the folder. Expected: every file inside it, keeping the folder names as a prefix.
Коментарі
Progress bar goes 64%, 12%, 64% after a resume
- Автор
- Bbtriapitsyn
- Оновлено
- 4 год тому
- Мітки
- bugupload
After a resume the bar drops from 64% to 12%, then climbs back. The upload itself continues from the right chunk.
Коментарі
The bar counts from the first chunk of the resumed batch, not from what the server already has.
That matches what I see: the jump is the size of the finished part.
Crash on a file named final_final_v2_🦆.mov
- Автор
- AAlexKutas
- Оновлено
- 5 год тому
- Мітки
- bug
Picking the file crashes the uploader before the first chunk. Renaming it to duck.mov works, which is a fine workaround and a terrible fix.
Коментарі
Reproduced. The name is cut by bytes, not by characters, and the duck is four bytes.
The duck stays. It is the only one who has seen every version.
Upload stalls at 99% on Safari, then at 99.5%
- Автор
- Bbtriapitsyn
- Оновлено
- 6 год тому
- Мітки
- bugsafari
On Safari 19 the last chunk never reports done. Chrome and Firefox finish the same file.
Коментарі
Safari fires the progress event, but not load, when the response has no body.
The server can answer the last chunk with a small JSON body. I will try it after #482 lands.
Uploads fail on a flaky connection
- Автор
- Ddeatheros
- Оновлено
- 1 дн тому
- Мітки
- buguploadreliability
On a flaky connection an upload fails at the first dropped chunk and never tries again. Seen on hotel Wi-Fi and on a train between two tunnels.
Expected: the upload pauses and picks up where it stopped.
Коментарі
Same on mobile data. A 40 MB file fails about one time in three.
Working on it in #482: failed chunks retry with backoff, up to five attempts.
Retry button does nothing while offline, very confidently
- Автор
- AAlexKutas
- Оновлено
- 4 дн тому
- Мітки
- bug
Pressing Retry with the network off does nothing, not even an error. I pressed it 40 times to be sure.
Коментарі
Fixed in #455: the button now says it waits for the network.
Type the retry options in the SDK, so attemps: 5 stops working
- Автор
- AAlexKutas
- Оновлено
- 5 год тому
- Мітки
- enhancementsdk
The uploader retries failed chunks now. The SDK client should take the same options, with types, instead of an untyped config object that happily took attemps: 5 for a week.
Коментарі
Same names as in #482: attempts and delays. #61 starts on it.
Expose upload progress as an async iterator
- Автор
- AAlexKutas
- Оновлено
- 2 дн тому
- Мітки
- enhancement
for await (const progress of upload) would read better than three callbacks and a fourth one nobody remembers adding.
Коментарі
Повтор невдалих завантажень
- Автор
- Yyulia-ivashko
- Оновлено
- 2 год тому
- Гілка
- feat/retry-uploadsmain
- Зміни
- +34−63
- Перевірки
- Усі пройшли
- Ревʼю
- Схвалено
- Мітки
- uploadsreliability
Додав експоненційну затримку в чергу завантажень. Невдалий фрагмент повторюється до п'яти разів, а смуга прогресу показує спробу. Тести покривають тайм-аут і відповідь 503.
Раніше невдалий фрагмент просто відкидався. Тепер черга питає в політики затримку й планує повтор, тож усі повтори проходять через одне місце.
Активність
Чи можна винести затримки в конфіг? На мобільних можуть знадобитись довші.
Гарна ідея. Затримки тепер один масив, тож це може бути окремий PR.
Keep the upload queue on disk, after checking there is a disk
- Автор
- Yyulia-ivashko
- Оновлено
- 14 хв тому
- Гілка
- feat/resume-uploadsmain
- Зміни
- +58−32
- Перевірки
- Виконується: 3 з 9
- Мітки
- uploads
Writes each chunk's state to disk, so a restart picks up where it stopped. Still wiring the restart path.
Активність
Add login with a session cookie
- Автор
- Ddeatheros
- Оновлено
- 1 год тому
- Гілка
- feat/loginmain
- Зміни
- +186−127
- Перевірки
- Впало: 1 з 9
- Ревʼю
- Просять зміни
- Мітки
- auth
Adds a login form and keeps the session in a cookie.
Активність
The redirect after login accepts any URL. Can it stay on our own origin?
Add drag and drop for attachments
- Автор
- AAlexKutas
- Оновлено
- 4 дн тому
- Гілка
- feat/drag-dropmain
- Зміни
- +241−376
- Ревʼю
- Схвалено
- Мітки
- enhancement
Files dropped on the composer upload as attachments. Folders come in #490.
Активність
Works on all three browsers here. Merging.
Add keyboard shortcuts, and make Esc cancel only one upload
- Автор
- Bbtriapitsyn
- Оновлено
- 7 дн тому
- Гілка
- feat/shortcutsmain
- Зміни
- +96−84
- Ревʼю
- Схвалено
- Мітки
- enhancement
Cmd+U picks files, Esc cancels the upload in focus. Before this, Esc cancelled every upload in the window.
Активність
Pass retry options through the SDK client
- Автор
- Yyulia-ivashko
- Оновлено
- 1 год тому
- Гілка
- feat/sdk-retry-optionsmain
- Зміни
- +42−53
- Перевірки
- Усі пройшли
- Ревʼю
- Потрібне ревʼю
- Мітки
- sdk
The client takes attempts and delays and hands them to the uploader. Defaults match the app: five attempts, from half a second to eight.
Активність
Types look right. Can the defaults be exported too, so I stop copying them from the README?
Retry budget per upload
- Виконавець
- yulia-ivashko
- Команда
- Uploads
- Пріоритет
- Високий
- Оновлено
- 1 год тому
- Мітки
- reliability
Five attempts per chunk is fine for one file. A folder of 300 files on a bad connection could retry for an hour. Cap the retries per upload, not only per chunk, before the agents spend the whole budget on one folder.
Коментарі
A cap of 50 retries per upload, then pause and ask?
Show upload speed in the header
- Виконавець
- AlexKutas
- Команда
- Uploads
- Пріоритет
- Середній
- Оновлено
- 6 год тому
- Мітки
- enhancement
Current speed and time left next to the progress bar. Time left should not start at 3 years.
Коментарі
Resume uploads after a restart
- Виконавець
- yulia-ivashko
- Команда
- Uploads
- Пріоритет
- Високий
- Оновлено
- 14 хв тому
- Мітки
- upload
Keep the queue on disk and restore it on start. In review as #485.
Коментарі
Stop uploading thumbnails at full size
- Виконавець
- btriapitsyn
- Команда
- Uploads
- Пріоритет
- Низький
- Оновлено
- 2 дн тому
- Мітки
- enhancement
A thumbnail of a 48 MP photo is currently a 48 MP photo. A 200 px WebP is plenty.
Коментарі
Publish the SDK with the retry options
- Виконавець
- AlexKutas
- Команда
- SDK
- Пріоритет
- Середній
- Оновлено
- 1 год тому
- Мітки
- sdk
Release once #61 is merged, with the new options in the changelog and not only in the commit messages.
Коментарі
Document the retry options before someone sets attempts to Infinity
- Виконавець
- btriapitsyn
- Команда
- SDK
- Пріоритет
- Низький
- Оновлено
- 1 дн тому
- Мітки
- enhancement
One page with the defaults and an example for a slow connection.
Коментарі
Інтеграції
Результати
Рекомендовані
Працює на вашій машині. Доступне звідусіль.
Десктопна апка запускає агентів на вашому комп'ютері й підключається до ваших серверів. Телефон один раз підключається через QR-код, а далі дістається до них через Private Relay: з наскрізним шифруванням і без відкритих портів.
Над чим працюємо в uploader?
Над чим працюємо в uploader?
Над чим працюємо в uploader?
Сесій не знайдено.
Обери, що показує панель стану роботи. Приховані секції зберігають свої дані — вони просто не відображаються.
Сесія Проєкт Джерела контексту Статистика ходу MCPconst result = await sendChunk(chunk); if (!result.ok) { const delay = backoff.next(chunk.attempt); if (delay === null) return fail(chunk); return schedule(chunk, delay); }
const DELAYS = [500, 1000, 2000, 4000, 8000]; export const backoff = { next(attempt: number) { return DELAYS[attempt] ?? null; } };
test('retries a chunk after a 503', async () => { server.respondWith(503); await upload(chunk); clock.tick(500); expect(server.calls).toBe(2); });
Одне завдання, кілька моделей.
Надішліть один промпт кільком моделям одразу. Кожен запуск може отримати власний worktree і гілку. Залиште найкращий результат або об'єднайте відповіді в один.
Читайте великий діф як покроковий огляд.
Walkthrough розкладає великий діф у тому порядку, в якому зміна має сенс, пояснює кожен крок одним реченням і позначає ключову зміну, щоб ви знали, з чого почати.
Ваші тікети й інструменти за один клік.
Почніть сесію з issue на GitHub, пул-реквесту чи тікета в Linear, і агент отримає все обговорення. У каталозі інтеграцій понад 160 сервісів, серед них Figma і Sentry, і кожен ставиться одним кліком.
Дайте йому ціль або розклад.
Задайте ціль, і агент працюватиме хід за ходом, доки окрема перевірка не скаже, що все готово або що він застряг. Заплановані завдання самі запускають сесію щоранку або один раз у наступний вівторок.
Від людей, які ним користуються.
Пости, про які ми не просили.
I've had a deep experience with openchamber. I think my choice was right. This thing is really useful, smooth and silky. Go try it out quick, I strongly recommend it, no more messing around blindly.
@realchendahuang Was looking for a way to run agents from my phone, remotely on my server, other than tmux. Found OpenChamber. It is INSANELY good, highly recommended.
@NihilSineTheo Seriously, I've spent almost the whole week trying to find a tool that made sense to orchestrate agents and, as a dev (actually, a devops), openchamber is the only one that felt natural and logical.
@1un4rPunk I just want to say the app itself is phenomenal. The level of polish is just unreal. I saw OpenChamber back when it was a small project, I think maybe a couple months ago, and now it is unrecognizable. Truly amazing work. The latest release with its streaming feature is everything I could have possibly asked for and more. It is gorgeous and smooth.
Встановіть на машину, яка у вас уже є.
Десктоп-застосунок для macOS, Windows чи Linux або одна команда на сервері. Далі відкривайте звідки завгодно.
OpenChamber нічого не збирає про вашу роботу. Код під ліцензією MIT, тож будь-хто може перевірити.
Активність
Чи можна винести затримки в конфіг? На мобільних можуть знадобитись довші.
Гарна ідея. Затримки тепер один масив, тож це може бути окремий PR.