feat(agent): an Agent tab, a session drawer page, and a bubble over the game (#2376)

* feat(agent): an Agent tab in the launcher that talks to Claude Code outside any session

* feat(agent): the agent in the session drawer and as a bubble over the game

* fix(agent): connect loopback adb, show unread replies, and fit the drawer page to the screen

* feat(agent): first-run setup in the Agent tab, a harness choice with Codex, and no permission prompts

* fix(agent): install helpers off the main thread and offer sign-in only after the install

* fix(agent): connect adb only for commands that use it and run setup checks one at a time

* fix(agent): show why a setup check failed

* fix(agent): each harness has its own setup state and conversation

* fix(agent): start the adb server before connecting and retry the connection check

* fix(agent): switching harness clears the previous harness's setup results

* feat(agent): a header, a composer with send and stop, and Markdown replies in the agent chat

* fix(agent): leave room under the chat composer

* feat(agent): continue the conversation after a Lab build restarts the app

* feat(agent): show and remove what the agent stores in the Linux userland

* fix(agent): the build tools take about 5 GB

* feat(agent): DroidDeck opens on the Agent tab after restarting on a Lab build

* feat(agent): conversation history, model and plan mode, live replies, full tool input and output, processes, attachments, queued messages and a Stop that ends the turn

* fix(agent): check the Lab build less often while nothing is happening

* fix(agent): an old Lab build's progress is not shown as a failure, and a restart counts as success

* feat(agent): rebuild a kept Lab build from Updates, and tidy the chat's tool rows, costs, processes and times

* feat(agent): a setup step that prepares fast Lab builds for the installed version, kept alive while it runs

* fix(agent): the notification names a prepare and shows its percent without repeating the title

* fix(agent): run the agent's Lab builds in the app's own process and continue the conversation that asked after the restart

* fix(agent): setup's prepare runs the build itself instead of handing it to the app

* feat(agent): a turn that ends without a reply says so and offers Retry, the resume is retried once, and each turn's raw output is kept

* fix(agent): keep the previous turn's raw output too

* fix(agent): a resumed Claude Code turn no longer ends at the result for a background task the last run left behind

* fix(agent): install Codex's code-mode host with it, without which Codex runs no commands

* feat(agent): setup and storage collapse into a summary card like Setup's, and Codex tool rows show the command without its shell wrapper

* feat(agent): drop the agent bubble over sessions for now; the drawer keeps the agent

* fix(agent): the Agent tab shows once the Linux runtime is downloaded, even while its proot pack is still being fetched

* fix(agent): before the install brings adb, the connection step checks the app's own pairing instead of failing with adb not found

* fix(agent): proot's binding warnings are not shown as a setup step's reason

* fix(agent): the session drawer's Agent page fills the height under the drawer's header instead of a guess from the screen height

* fix(agent): write the browser and GitHub helpers before every setup step, not only the install

* fix(agent): find Wireless debugging's current port when the saved one no longer answers, so sign-ins open the browser after it restarts

* fix(agent): only take a Wireless debugging port that answers, since mDNS can still advertise an old one

* fix(agent): find a loopback Wireless debugging port by scanning when mDNS advertises none

* fix(agent): keep a Codex turn going through reconnect notices and read gh login's status reliably

* fix(agent): time out hung setup checks and keep their results and actions with their harness

* fix(agent): keep the draft across settings and show the Agent tab once the runtime installs

* fix(agent): keep the backslash when quoting apostrophes in a URL the browser helper opens

* fix(agent): refresh apt's package lists before installing, since a fresh Linux runtime ships without them

* fix(agent): sign-in links open through the app itself, so they work without Wireless debugging

* fix(agent): the connection step passes only when adb really reaches the device, not on adb's own error

* fix(agent): say Wireless debugging isn't reachable instead of adb's error

* fix(agent): keep prompts, tool ids, attachments and retries with their own turn and chat

* fix(agent): the service stops only once foreground, and Rebuild waits for a ready agent

* fix(agent): the Codex install says what it is downloading, so a long download doesn't look stuck

* fix(agent): pass the prompt to both CLIs the way they were tested on devices

* fix(agent): the browser helper uses the running app's files directory, falls back to adb when the app cannot open a link, and the link is not logged
This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-11-11 14:10:02 -05:00
1 parent 61031e3c4b
commit db933e4232
33 files changed
+3210 -13

No files matched your search

+95
View File
@@ -1144,6 +1144,101 @@
<string name="lab_off_title">Lab build turned off</string>
<string name="lab_off_other_install">It was built for another version of DroidDeck. It is kept in Updates.</string>
<string name="lab_off_did_not_start">DroidDeck did not start on it twice</string>
<string name="rail_agent">Agent</string>
<string name="agent_channel_name">Agent</string>
<string name="agent_working">Agent is working</string>
<string name="agent_missing">Install Claude Code in the Linux userland to use the agent.</string>
<string name="agent_hint">Ask about a game, a crash, or a change to DroidDeck</string>
<string name="agent_send">Send</string>
<string name="agent_new">New conversation</string>
<string name="agent_stop">Stop</string>
<string name="agent_storage_title">Storage</string>
<string name="agent_storage_remove">Remove</string>
<string name="agent_storage_confirm">Remove now</string>
<string name="agent_storage_claude">Claude Code</string>
<string name="agent_storage_codex">Codex</string>
<string name="agent_storage_source">DroidDeck source</string>
<string name="agent_storage_caches">Download caches</string>
<string name="agent_storage_source_warning">Changes that are not pushed are lost</string>
<string name="agent_storage_caches_warning">Builds download these again</string>
<string name="agent_storage_reinstall_warning">Setup can install it again; sign-ins are kept</string>
<string name="agent_resumed">DroidDeck restarted on your Lab build. Continue where you left off.</string>
<string name="agent_empty">Ask it why a game won\'t start, to explain a log, or to change DroidDeck and try the change on this device.</string>
<string name="agent_failed">Failed: %1$s</string>
<string name="agent_exited">%1$s ended (exit %2$d)</string>
<string name="agent_stopped">Stopped</string>
<string name="agent_no_reply">Ended without a reply</string>
<string name="agent_retry">Retry</string>
<string name="agent_setting_up">Setting up the agent</string>
<string name="agent_rebuild_lab">Rebuild my Lab build %1$s for the installed version of DroidDeck and restart on it.</string>
<string name="agent_tokens">%1$s in · %2$s out</string>
<string name="agent_thinking">Thinking</string>
<string name="agent_thought">Thought</string>
<string name="agent_thinking_for">Thinking · %1$s</string>
<string name="agent_running">%1$s · %2$s</string>
<string name="agent_tool_input">INPUT</string>
<string name="agent_tool_output">OUTPUT</string>
<string name="agent_tool_running">Running…</string>
<string name="agent_tool_no_result">No result: the turn ended first</string>
<string name="agent_tool_empty">No output</string>
<string name="agent_hint_working">Type to queue the next message</string>
<string name="agent_queue">Queue</string>
<string name="agent_queued">Next: %1$s</string>
<string name="agent_unqueue">Don\'t send</string>
<string name="agent_attach">Attach</string>
<string name="agent_remove_attachment">Remove</string>
<string name="agent_model_default">Default</string>
<string name="agent_plan">Plan first</string>
<string name="agent_plan_short">Plan</string>
<string name="agent_plan_hint">Proposes a plan without changing anything</string>
<string name="agent_history">Conversations</string>
<string name="agent_history_empty">No conversations yet</string>
<string name="agent_just_now">Just now</string>
<string name="agent_history_delete">Delete</string>
<string name="agent_history_delete_warning">Deletes it and its attachments</string>
<string name="agent_processes">Processes</string>
<string name="agent_processes_empty">Nothing is running in the Linux userland</string>
<string name="agent_process_agent">AGENT</string>
<string name="agent_process_stop">Stop</string>
<string name="agent_lab_building">Lab build</string>
<string name="agent_lab_preparing">Preparing Lab builds</string>
<string name="agent_lab_progress">%1$d%% · about %2$s left</string>
<string name="agent_lab_left">about %1$s left</string>
<string name="agent_lab_cancel">Cancel</string>
<string name="agent_lab_cancel_confirm">Cancel build</string>
<string name="agent_lab_stage_starting">Starting</string>
<string name="agent_lab_stage_building">%1$d%%</string>
<string name="agent_lab_stage_packaging">Packaging</string>
<string name="agent_lab_stage_restarting">Restarting DroidDeck on it</string>
<string name="agent_lab_stage_ready">Done</string>
<string name="agent_lab_stage_failed">Failed: %1$s</string>
<string name="agent_setup_title">Set up the agent</string>
<string name="agent_setup_runtime">Install the Linux runtime in Setup first.</string>
<string name="agent_setup_retry">Retry</string>
<string name="agent_setup_done">Start chatting</string>
<string name="agent_step_connection">Device connection</string>
<string name="agent_step_connection_hint">Wireless debugging, so the agent can see and drive DroidDeck</string>
<string name="agent_step_install">Install %1$s</string>
<string name="agent_step_install_hint">Into the Linux userland, with git, gh and adb</string>
<string name="agent_step_sign_in">Sign in to %1$s</string>
<string name="agent_step_sign_in_hint">Opens your browser</string>
<string name="agent_step_github">GitHub</string>
<string name="agent_step_github_hint">Optional, to open pull requests</string>
<string name="agent_step_build">Build tools</string>
<string name="agent_step_build_hint">Optional, for Lab builds on this device · about 5 GB</string>
<string name="agent_summary_ready">Agent ready</string>
<string name="agent_summary_not_ready">Finish setting up the agent</string>
<string name="agent_summary_signed_in">Signed in to %1$s</string>
<string name="agent_summary_lab">Lab builds</string>
<string name="agent_summary_fast">fast builds</string>
<string name="agent_step_prepare">Fast Lab builds</string>
<string name="agent_step_prepare_hint">Compiles this version ahead, so Lab builds take minutes · about 20 minutes once</string>
<string name="agent_prepare_progress">Compiling · %1$d%% · about %2$s left</string>
<string name="agent_action_prepare">Prepare</string>
<string name="agent_connection_off">Wireless debugging isn\'t reachable; Pair turns it on</string>
<string name="agent_action_pair">Pair</string>
<string name="agent_action_install">Install</string>
<string name="agent_action_sign_in">Sign in</string>
<string name="upd_pr">PR #%1$d</string>
<string name="upd_not_built">Not built for this copy of DroidDeck</string>
<string name="upd_updated">Updated %1$s</string>