Skip to content

Improve mobile dispatch and transcript logs#6

Merged
alexchaomander merged 4 commits intomainfrom
improve-mobile-dispatch-transcript
Mar 21, 2026
Merged

Improve mobile dispatch and transcript logs#6
alexchaomander merged 4 commits intomainfrom
improve-mobile-dispatch-transcript

Conversation

@alexchaomander
Copy link
Copy Markdown
Owner

@alexchaomander alexchaomander commented Mar 21, 2026

Summary

This PR reshapes CloudCode into a cleaner mobile control surface for managing multiple coding agents.

Dispatch and session launch

  • Adds a net-new task dispatcher on the dashboard for fast task submission from mobile.
  • Adds a compact Send flow for quick task dispatch from the dashboard.
  • Keeps Create as the deliberate full-setup path.
  • Makes agent selection visible in the quick dispatch card.
  • Tightens the launch/loading experience so users see immediate feedback before terminal output appears.

Dashboard UX

  • Reorders the dashboard so live sessions are shown first.
  • Simplifies top-level copy and reduces clutter on mobile.
  • Keeps recent sessions accessible without overwhelming the main screen.
  • Clarifies the difference between fast dispatch and full session creation.

Transcript and logs

  • Rebuilds the Logs tab into a durable transcript reader instead of a terminal viewport snapshot.
  • Adds paginated transcript loading so users can scroll back through the full run.
  • Starts transcript capture at session creation time and avoids duplicate writes from the live websocket path.
  • Deduplicates repeated redraw noise so repeated terminal frames do not appear multiple times.
  • Keeps terminal-first live viewing, with logs as the historical readout.
  • Adds clearer state labeling for transcript position and live output.

Mirror/live session handling

  • Aligns mirror behavior to CloudCode-managed live sessions instead of arbitrary tmux sessions.
  • Renames the mirror concept in the UI to Live Sessions for clarity.

Documentation

  • Updates README and remote-control docs to match the simplified mobile-first workflow.

Verification

  • npm test --workspace=backend
  • npm run build --workspace=frontend

Notes

  • Commit: c3ec9b6 (Log transcript append failures)
  • Branch: improve-mobile-dispatch-transcript

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the mobile user experience for CloudCode by streamlining session dispatch and overhauling the logging system. It introduces a faster 'Send' option for initiating tasks, alongside a more robust and readable 'Transcript' view that supports pagination and deduplication. The dashboard layout has been optimized for mobile, prioritizing active sessions and clarifying interaction flows. These changes aim to make remote agent management more intuitive and efficient, particularly on smaller screens.

Highlights

  • Enhanced Mobile Dispatch Flow: Introduced a compact 'Send' flow for quick task dispatch from the dashboard, complementing the existing 'Create' path for full session setup. Agent selection is now visible in the quick dispatch card, and the launch experience provides immediate feedback.
  • Revamped Transcript and Logs: The 'Logs' tab has been rebuilt into a durable, paginated transcript reader, replacing the previous terminal viewport snapshot. This includes starting transcript capture at session creation, deduplicating repeated terminal output, and providing clearer state labeling.
  • Improved Dashboard User Experience: The dashboard now reorders live sessions to appear first, simplifies top-level copy, reduces clutter on mobile, and clarifies the distinction between fast dispatch and full session creation.
  • Refined Live Session Handling: Mirroring behavior is now aligned with CloudCode-managed live sessions, and the UI concept has been renamed from 'Mirror' to 'Live Sessions' for better clarity.
  • Documentation Updates: The README and remote-control documentation have been updated to reflect the new mobile-first workflow and the 'Send vs Create' distinction.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This is a substantial pull request that significantly enhances the mobile user experience and the durability of session logs. The introduction of a "Send" flow for quick task dispatch is a great UX improvement. The overhaul of the transcript system, with paginated loading, deduplication of terminal noise, and a more readable format, is a major technical upgrade. Refactoring the complex transcript parsing logic into its own module (readable-transcript.ts) with dedicated tests is a commendable improvement for maintainability. The UI changes on the dashboard and session creation pages make the distinction between quick dispatch and full session setup much clearer. The two minor suggestions I have are related to improving error visibility for background tasks by logging caught exceptions instead of swallowing them silently. Overall, this is an excellent set of changes that greatly improves the product.

}
const recorder = await sidecarManager.openStream(sessionName, 160, 48, {
onOutput: ({ text }) => {
void appendTranscript(sessionId, text).catch(() => {});
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Silently swallowing errors from appendTranscript can make debugging difficult if transcript recording fails. While transcript recording is best-effort, logging the error would provide visibility into potential issues (e.g., disk space, permissions) without crashing the main process.

Suggested change
void appendTranscript(sessionId, text).catch(() => {});
void appendTranscript(sessionId, text).catch((err) => { console.error(`Failed to append transcript for session ${sessionId}:`, err); });

onOutput: ({ text, dataBase64 }) => {
void appendTranscript(session.id, text).catch(() => {});
if (session && !isMirrorOnly && !hasTranscriptRecorder(session.id)) {
void appendTranscript(session.id, text).catch(() => {});
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Similar to the main transcript recorder, this fallback mechanism for appending to the transcript silently swallows errors. It would be beneficial to log any errors that occur here to aid in debugging potential transcript issues, without interrupting the websocket stream.

Suggested change
void appendTranscript(session.id, text).catch(() => {});
void appendTranscript(session.id, text).catch((err) => { console.error(`[WS Fallback] Failed to append transcript for session ${session.id}:`, err); });

@alexchaomander alexchaomander merged commit 39d17d4 into main Mar 21, 2026
1 check passed
@alexchaomander alexchaomander deleted the improve-mobile-dispatch-transcript branch March 21, 2026 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant