Skip to content

Opened by mistake (fork change) - #48438

Closed
mimen wants to merge 179 commits into
pingdotgg:mainfrom
mimen:fork/bot-queue
Closed

mimen wants to merge 179 commits into
pingdotgg:mainfrom
mimen:fork/bot-queue

Conversation

@mimen

@mimen mimen commented Dec 3, 2026 •

Copy link
Copy Markdown

Opened on the wrong repository by mistake and closed. Nothing to review.

Milad Imen and others added 30 commits October 9, 2026 22:56
The desktop app ships as T3 Code (Fork): its own bundle id, Electron
profile, ~/.t3-fork state directory, and update feed, so it installs
beside upstream's Nightly and never shares state with it. FORK.md lists
every touched upstream file; scripts/fork holds the check and the
Mini-side release.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A user message carrying the fork-one-shot context record gets a hidden
instruction prepended to its provider text, and the thread settles when
that message's run completes cleanly.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
t3_thread_launch and create_threads entries accept settleWhenDone, which
marks the first message one-shot.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A draft thread's composer shows a One-shot toggle, also reachable from
the overflow menu when the controls collapse. When it is on, the first
message carries the one-shot record.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Conflicts:
- apps/web/src/components/ChatView.tsx: kept upstream's observeResize import alongside the fork one-shot import.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Conflicts:
- apps/web/src/components/ChatView.tsx: took upstream's split import of ATTACHMENT_ONLY_BOOTSTRAP_PROMPT from @t3tools/shared/composerContextReferences; re-added the fork one-shot withDraftOneShotContext import.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
TrimmedNonEmptyString stripped leading and trailing spaces, so a commit or status decode targeted a different file than the one on disk.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Carries upstream pingdotgg#20112 until it merges. The one-shot hook and the
device line now nest in ProviderTurnStartService; EffectWorker keeps the fork's
older steer follow-up and adds the sender.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
268aa41 changed packages/contracts/src/git.ts and its test without a row, so
fork-lint failed on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- EffectWorker.ts: took upstream's disabled-instance catch on the steer follow-up dispatch, re-added the device-sender `sender` field (carried pingdotgg#20112).
- server.ts: kept upstream's DelegatedTaskQuestionReactor import and layer, fork one-shot reactor after it.
- packages/shared/package.json: kept upstream's ./githubMarkdownLinks export and the fork ./forkOneShot export.
- build-desktop-artifact.test.ts: took upstream's 0.1.0 "T3 Code (Beta)" assertion, nightly name stays "T3 Code (Fork)".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Upstream force-moves floating tags such as android-nightly, and a stale local copy
made the --tags fetch fail, which stopped the release under set -e.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
apps/server/src/server.ts: upstream dropped the rate-limits comment; kept the fork one-shot reactor layer, took upstream's removal.
scripts/build-desktop-artifact.test.ts: upstream dropped the profile comment; kept the fork bundle id com.mimen.t3code.fork.
apps/web/src/components/chat/ChatComposer.tsx: upstream's new no-low-value-comments rule flagged the bare `fork: one-shot` marker; reworded it to say what the slot holds.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Conflicts:
- apps/server/src/mcp/OrchestratorMcpService.ts: kept upstream's threadPullRequests import and the fork's one-shot import.
- packages/contracts/src/orchestrationV2.ts: kept upstream's workflowScript field and the fork's sender field on the user message.
- apps/server/src/orchestration-v2/SteeringCompletion.integration.test.ts: kept the fork's device-sender test and upstream's held-draft steering test as separate tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
DesktopClerk tests upstream added expect the fork's profile directory.
check.sh skips the two Linux theme icon tests that need a case-sensitive
filesystem.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Opening a pairing link in a tab that already shows the pairing screen changes
only the URL hash, so the route never remounts and the token sat unused in the
address bar until a manual reload. The surface now also submits a token that
arrives through hashchange. Restores fa59547, lost in the 2026-10-10 fork
reset.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Orchestrator.ts: took upstream's restructured dispatch; re-added device-sender `sender` passthrough on each conversation message and the dispatch input (not on user turn items, whose schema has no sender).
ProviderTurnStartService.ts: took upstream; re-wrapped userText with withUserDevice and withOneShotInstruction.
OrchestratorMcpService.ts: took upstream (resolvedModelSelection); re-added one-shot settleWhenDone context on create_threads.
server.ts: took upstream's NodeHttp comment; re-added ForkOneShotSettleReactor import and layer.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Upstream's new ws.test.ts config-subscription test calls layerWsRpc without the
device-sender argument and session client; pass both. FORK.md gains rows for
ws.test.ts and the pairing-hash fix in PairingRouteSurface.tsx.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A one-shot first message that starts with a slash command reached the
provider with the one-shot instruction block in front of it, so adapters
that parse native commands from the start of the text (ACP's
isNativeSlashCommand, t3AcpPromptWithInstructions) ran it as plain prose,
and the thread then settled out of view. withOneShotInstruction now passes
slash commands through, as withUserDevice already does; the settle record
still rides on the message context.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Conflicts (upstream pruned low-value tests, pingdotgg#22599 and siblings):
- DesktopEarlyElectronStartup/DesktopPreReadyFileSystem/DesktopApplicationMenu tests: took upstream; the fork-edited tests were deleted, FORK.md rows dropped.
- scripts/build-desktop-artifact.test.ts: took upstream, re-applied the fork bundle id to the surviving signing tests.
- runtimeInstructions.test.ts: upstream deleted it; kept only the carried pingdotgg#20112 withUserDevice tests.
- ChatView.tsx: took upstream; send path moved to chat/useComposerSend.ts, one-shot record hook ported there
- chat/ChatComposer.tsx: took upstream; controls moved to chat/ComposerControlsBar.tsx, one-shot toggle and overflow item ported there
- FORK.md: rows moved to the new files

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fresh checkout has no Electron binary, so five desktop test files raced to
extract it and failed with EEXIST. Upstream CI runs ensure:electron first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds a Someday preset after the timed ones on web, desktop, and mobile. It
snoozes to a far-future wake, so the server, the Snoozed shelf, and early
wakes on a request or failure all work unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Milad Imen and others added 21 commits November 30, 2026 03:04
…am's tools now need

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bots that should follow the fleet charter only did so when their brief
linked to it by hand. The bot block now carries `_fleet/charter.md` from
the bots folder ahead of the brief. The folder never lists as a bot, and
a missing charter leaves the block as it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r answers

Bots call t3_thread_search before asking the user anything, but it skipped
messages other agents sent in, archived threads, answers in question cards,
and picker answers, so bots re-asked things the user had already settled.

The message index now holds agent-sent messages; a one-time startup step
recreates the triggers and backfills the missing rows. The agent search
(searchThreads) reads archived threads, async answers and resolved picker
answers, tags each message hit with its author (user, agent, bot-sent), and
ranks the user's own words and picker answers first at similar relevance.
Client search keeps its old results.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bots search by topic, and a topic is often a bot's name, so the thread
whose title matches was the one whose messages search skipped. When the
titles leave room in the results, an agent's search now reads those
threads' messages too, in a read of their own so a busy titled thread
cannot crowd others out of the hit limit, and merges them with the other
message hits in rank order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bots now set two fields on their own thread at the end of each run with a
new `t3_bot_status` MCP tool: how many asks wait on the user (with a due
flag for anything inside 48 hours) and a one-line status, capped at 80
characters by the server. The fields replace the "Name · N" title count,
which stays only as a fallback until bots switch.

The bot row's status slot shows one signal: Awaiting Input, Failed, a
spinner, or an asks badge beside the time; otherwise the row dims. The
green done dot is gone, and a run another thread's agent started lights
nothing, read from the run message's sender. Collapsed groups sum their
members' asks.

Bot rows render as thread cards on their own stored layout, edited in
Settings → Bots → Bot rows with upstream's thread-row editor through a
small layout-target context. Bot-only items: asks, status line, next run,
group, and last hub report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Awaiting Input, Failed and the spinner hold the status slot on their own,
as the status-slot order says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he name

After bot rows moved onto thread cards, a one-line bot row stood 36px
tall against the old 28px, and its asks badge floated right, where the
wider Settle button on hover pushed it left. Bot cards now use 4px of
vertical padding, so a one-line row is exactly the old height. The
default layout is one line with the asks right after the name. The bot
row's status slot keeps one width, and its Settle button is icon-only,
so hover moves nothing. Saved bot layouts move to a new key, because
they were stored against the old three-line default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s thread

In a bot's thread, the questions button sends `/here`, with a door icon
and its own tooltip. Everywhere else it still sends `/q`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The lead row's name span and the group header's name span both grew to fill
the row, so their badge sat at a fixed offset instead of against the name
like the nested rows. The name now keeps its width; a collapsed group header
keeps its spinner and dots on the right.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Map cards drew a plain count badge and never the status line. They now use
the sidebar's asks badge, tinted when one is due, and show the bot's status
line in place of the last run; selecting a bot puts the full status in the
footer. Titles are plain names now, so the count parsed from a title is
gone everywhere: asks come only from t3_bot_status.

A group with no lead (Fleet, Operations) already drew as member rows under
the group's name; a test now holds that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s map

The Bots settings sat at the bottom of Scheduled tasks, and the map drew
only under All environments, so it was hard to find. Settings → Bots now
holds the bots directory, Bot rows and the map. The map draws whichever
machine the scope selects, or the primary one. A map button on the
sidebar's Bots header opens the page at the map. Scheduled tasks is back to
upstream.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
t3_bot_status takes an optional `owed`: messages and acts only the user can
do, such as replies and important letters, kept out of `asks`. A row shows it
as a quieter "· 5 owed" right after the asks badge, so neither moves on hover;
it is a Bot rows item of its own, and a layout saved before it existed gets
it beside the asks. Collapsed groups sum it and the map card shows it.
A bot with only owed items still wants the user. `due: true` with nothing
counted is refused with an error the bot can read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every send started a run in the target thread, so bots woke each other for
FYIs. `mode: "inbox"` stores the message on a bot thread instead (up to 20,
8,000 characters each) and starts nothing. When the bot's next run has a
provider turn running, a reactor steers each waiting message into it,
oldest first, from the thread that left it, then drops it from the inbox;
a message no run can take waits for the next one. The send result names no
run for an inbox send, so `runId` and `status` are optional there.

Checked live in a dev build with Haiku: the inbox send started no run, and
the bot's next run received the message as a steer and read it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- SidebarRowLayoutRow.tsx: took upstream's sensorRef prop on the editor; kept the fork's export and useContext (bots), dropped the now-unused useEffect import.
- SidebarThreadRow.tsx: took upstream's sidebarCardHeightRem helper; the bot card subtracts its 0.5rem on top (fork: bots).
- ForkBotRowLayout.tsx: passes its own sensorRef and cancels it on close, like upstream's dialog; dropped the onPin prop upstream removed from SidebarThreadRow.
- client-runtime threadCommands.ts: setBot wraps setThreadBot in withShellReceipt, matching upstream's new receipt shape.
- agentContextBudget.json: measured values from AgentContextBudget.test.ts.
- apps/web i18n catalogs: union of upstream and fork keys (upstream values win), then vp run i18n:generate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- agentContextBudget.json: measured values after main's t3_thread_send and bot report changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bots owed-report commit added a mobile string without regenerating the catalogs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bots were told to post a start and a finish to the hub on every run, and
many runs posted nothing or both at the end. The server now does it:
a start when a bot run's provider turn starts, a finish when the run ends,
as job t3.bot.<botId> with reporter "t3". Both carry the run's own start
time so they pair up; the detail names the outcome (completed, failed,
cancelled), what started the run (scheduled, here, bot-sent, user) and the
run id. The hub has no cancelled exit, so a cancelled run posts `error`.

Settings → Bots takes the hub endpoint and bearer; the bearer may be an
op:// reference the server reads once with the 1Password CLI and keeps in
memory, never in a log. Both empty, nothing is posted.

Checked in a dev build against a local listener: the server read the bearer
through `op` and posted a paired start and finish for a Haiku bot run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hind it

The reactor returned at the first steer it could not deliver, so one message
whose command was already rejected left every later note in the inbox unsent.
It now offers the rest; the message that failed stays for the next run.

Co-Authored-By: Claude Code <noreply@anthropic.com>
- apps/{web,mobile}/src/i18n/translations: took upstream, reran i18n:generate in each app
- agentContextBudget.json: took upstream, set mcpToolListJsonBytes to the measured 65297

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- apps/{web,mobile}/src/i18n/translations: took upstream, reran i18n:generate in each app
- agentContextBudget.json: took upstream, set mcpToolListJsonBytes to the measured 65294 (fork bot and thread tools)
- ThreadDetailScreen.tsx, useThreadLifecycle.tsx: kept someday-snooze "Saved for later" branch on upstream's gt tagged-template form
- Sidebar.tsx: took upstream's tagged-template Snoozed label, kept later-shelf count
- ChatComposer.tsx: kept fork sendQuestionsPrompt, took upstream's reworded citation comment
- runtimeLayer.test.ts: took upstream's ThreadWorkspaceService import (ScratchThreadPromotion gone upstream), kept thread-project-move imports
- gt-i18n 2 port: upstream dropped gt("...") and msg("...", { $context | values }); fork call sites in bots, later-shelf, someday-snooze, questions-button, one-shot and environment-name moved to tagged templates, plural()/part(), and { context }
- forkRowLayoutTarget.ts: label may be a Msg, as upstream's own row labels now are

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ueue

ARC-1. A bot's asks and owed were counts only, so the user had to open each
thread to see what was waiting. `t3_bot_status` now takes optional `items`
(`id`, `kind` decide or do, a summary of at most 120 characters, an optional
ISO `due`), stored on the report; when items are present, asks, owed and due
are read from them. A bare due date runs to the end of the day it names.
Count-only reports keep working.

Settings → Bots gains "Your queue": every live bot thread's items, decisions
first, then acts, each by due date with undated last. A row shows the
summary, kind, id, the bot's icon and name, and the due date (amber within
48 hours, red when past); clicking it opens the bot's thread. Items stay out
of the thread shells every client loads; the queue fetches them over a new
`fork.bots.queue` RPC and refetches when any bot reports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mimen

mimen commented Dec 3, 2026

Copy link
Copy Markdown
Author

Opened here by mistake; this belongs to a fork. Sorry for the noise.

@mimen mimen closed this Dec 3, 2026
@mimen mimen changed the title feat(fork): bots report queue items, and Settings → Bots lists your queue Opened by mistake (fork change) Dec 3, 2026
@github-actions github-actions Bot added the vouch:unvouched Author is not yet trusted in the VOUCHED list. label Dec 3, 2026
@macroscopeapp

macroscopeapp Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Macroscope skipped reviewing this pull request. Per-review cost limit exceeded (workspace setting).

This review would cost an estimated $21.01, which exceeds your per-review limit of $15.00.

The top 3 files driving up this estimate:

File Diff Size Estimate
FORK.md 43.85KB $1.74
apps/web/src/components/Sidebar.forkBots.tsx 20.82KB $0.83
apps/web/src/i18n/translations/de.json 18.59KB $0.74

Tip

To get this pull request reviewed, you can:

  1. Comment @macroscope-app on this PR to request a manual review (monthly spend limits still apply).
  2. Exclude the file(s) above from review by adding a pattern to your .macroscope/ignore.md — note that creating this file replaces Macroscope's built-in default ignores rather than extending them.
  3. Raise your cost limit in your workspace billing settings.

Turn off this reminder going forward

@github-actions github-actions Bot added the size:XXL 1,000+ changed lines (additions + deletions). label Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

This PR changes the test suite by +150 test cases (browser +2, unit +79, server +69).

New browser test files: apps/web/src/components/ChatView.forkQuestions.browser.test.tsx.
Each browser test file costs CI seconds of module loading before its first test runs; a unit test costs milliseconds.

Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing.

@macroscopeapp

macroscopeapp Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs Human Approval

Macroscope's review found this PR requires human approval — This fork changes desktop storage/profile defaults and enables background update downloads with installation on quit. Those default changes and newly added lint suppressions require human review.

Needs human approval because:

  • Per-review cost limit exceeded (workspace setting). Approvability relies on correctness review in order to determine eligibility

Review your spending limits in Billing settings, or comment @macroscope-app review this PR to bypass the limit and review now. You can add or adjust custom eligibility rules. Learn more.

@juliusmarminge

Copy link
Copy Markdown
Member

Closing this: Thanks for the work on the fork's bot queue, but this pull request was opened in the upstream repository by mistake and is already closed. Its description explicitly says it belongs to the fork and that there is nothing to review.

Please continue that work in the fork repository; no upstream review is needed for this submission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL 1,000+ changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants