Arm the target button in the composer and the next prompt becomes a goal: the server keeps the session working toward it (idle tick -> small-model audit -> continuation) until the objective is verifiably complete, blocked, or out of budget — even with the UI closed. Server (packages/web/server/lib/session-goal): - event-driven loop on the global SSE hub; goal state lives in session.metadata.openchamber.goal (merge-safe patches, stale-write guard by goal id), so it survives restarts and syncs to every client for free - the small-model audit (objective + last assistant turn only, language pinned to the objective) is the sole termination authority; blocked needs 3 consecutive verdicts, audit outages tolerate one unaudited continuation then stop the goal as resumable-blocked - hard stops: optional token budget, auto-continuation cap (Resume grants a fresh allowance), turn errors; user abort pauses the goal instead of blocking it, and resuming over an aborted tail nudges immediately - token accounting as a snapshot of the latest turn (input + cache.read + output), goal-relative via a creation baseline and segmented across compactions; a compaction summary skips the audit and continues - continuations reuse the session's own provider/model/agent/variant UI: - three-mode target button (arm / disarm / manage dialog), informational goal strip with inline pause/resume and an Evaluating indicator, sidebar state glyph, objective length counter (2000-char server clamp), read-only completed goals - goal entry points: composer (sessions and drafts), start-new-session- from-answer dialog, plan implement dialog (plan content becomes the objective), scheduled tasks (Run as goal + budget) - Settings -> Chat -> Goal: feature toggle + default token budget with three-layer parity (web server, client persistence, VS Code bridge); VS Code renders goal state but hides the entry points (the loop runs in the web server only) Notifications: per-turn "ready" notifications are suppressed while a goal is active; settling sends one final notification (desktop, web-push, APNs generic titles with the session name as body) honoring the completion toggle. Error/question/permission notifications are untouched. Docs: user guide (session-goals) in all 9 locales + sidebar entry, scheduled-tasks cross-reference, server module DOCUMENTATION.md.
36 lines
1.7 KiB
Plaintext
36 lines
1.7 KiB
Plaintext
---
|
|
title: Zaplanowane zadania
|
|
description: Uruchamiaj prompt automatycznie według harmonogramu.
|
|
---
|
|
|
|
# Zaplanowane zadania
|
|
|
|
Zaplanowane zadanie uruchamia za Ciebie prompt według harmonogramu — na przykład codzienne „podsumuj wczorajsze zmiany” albo cotygodniowe porządki. Gdy się uruchamia, OpenChamber rozpoczyna nową sesję i sam wysyła prompt. Otwórz harmonogram z przycisku u góry paska bocznego sesji.
|
|
|
|
## Utwórz zadanie
|
|
|
|
1. Otwórz okno zaplanowanych zadań z paska bocznego sesji.
|
|
2. Dodaj zadanie i nadaj mu nazwę.
|
|
3. Wybierz, kiedy się uruchamia:
|
|
- **daily** — o jednej lub kilku porach każdego dnia
|
|
- **weekly** — w wybrane dni tygodnia i godziny
|
|
- **once** — jedna data i godzina
|
|
4. Ustaw, co robi: prompt do wysłania oraz dostawcę, model i agenta do użycia. Promptem może być polecenie z ukośnikiem, jak `/review`.
|
|
5. Zapisz i upewnij się, że zadanie jest włączone.
|
|
|
|
Dowolne zadanie możesz uruchomić natychmiast za pomocą **run now**, aby sprawdzić, czy robi to, czego oczekujesz.
|
|
|
|
Zaznacz **Uruchom jako cel**, aby uruchomienie doprowadziło prompt do końca zamiast zatrzymywać się po jednej odpowiedzi — zobacz [Cele sesji](/session-goals/).
|
|
|
|
## Jak wygląda sukces
|
|
|
|
Po uruchomieniu zadanie pokazuje, kiedy ostatnio się wykonało, czy się powiodło, oraz link do utworzonej sesji. Jeśli uruchomienie się nie powiedzie, błąd również jest tam pokazany.
|
|
|
|
## Pamiętaj
|
|
|
|
Zadania uruchamiają się tylko wtedy, gdy serwer OpenChamber działa. Jeśli go zamkniesz, zaplanowane uruchomienia są wstrzymane, dopóki nie wróci.
|
|
|
|
## Powiązane
|
|
|
|
- [Polecenia i fragmenty](/pl/commands-snippets/) — użyj ponownie polecenia z ukośnikiem jako promptu
|