Skip to content

Mobile Shell Button#723

Merged
arul28 merged 8 commits into
mainfrom
ade/ok-start-skill-plan-skill-77039123
Jul 7, 2026
Merged

Mobile Shell Button#723
arul28 merged 8 commits into
mainfrom
ade/ok-start-skill-plan-skill-77039123

Conversation

@arul28

@arul28 arul28 commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

Describe the change.

What Changed

Key files and behaviors.

Validation

How you tested.

Risks

Anything to watch.

ADE   Open in ADE  ·  ade/ok-start-skill-plan-skill-77039123 branch  ·  PR #723

Summary by CodeRabbit

  • New Features

    • Added a new way to start shell sessions from chat, with project-aware scope selection.
    • Improved session launching so the app can route commands to the correct project context, even when offline or queued.
  • Bug Fixes

    • Fixed session launches so they keep the intended project scope instead of switching to the active project.
    • Improved handling of queued shell launches to avoid failed or misrouted sessions.

Greptile Summary

This PR adds a mobile Shell button for work lanes. The main changes are:

  • Lane project IDs now flow into local lane summaries.
  • Shell launches resolve scope from the selected lane.
  • Shell commands avoid active-project fallback when lane scope is missing.
  • The Work composer shows a Shell chip next to import actions.
  • Tests cover shell defaults, nested roots, stale catalogs, and queued shell starts.

Confidence Score: 5/5

This looks safe to merge.

No blocking issues found in the changed code.

T-Rex T-Rex Logs

What T-Rex did

  • Reviewed the general-contract-validation-proof for the mobile-shell-button tooling, noting the two associated logs.
  • Reviewed the tooling check log to verify that the pre-build checks completed as expected.
  • Reviewed the attempted iOS build log to capture the build context after tooling validation.

View all artifacts

T-Rex Ran code and verified through T-Rex

Important Files Changed

Filename Overview
apps/ios/ADE/Views/Work/WorkNewChatScreen.swift Adds the Shell chip and resolves shell project scope from the selected lane.
apps/ios/ADE/Services/SyncService.swift Adds shell-specific session creation and carries the active-project fallback flag through command send, queue, and replay paths.
apps/ios/ADE/Services/Database.swift Loads lane project IDs from the local lane table into lane summaries.
apps/ios/ADE/Models/RemoteModels.swift Adds an optional project ID field to lane summaries.
apps/ios/ADETests/ADETests.swift Adds tests for shell request defaults, lane scope resolution, and queued shell behavior.

Reviews (8): Last reviewed commit: "ship: iteration 7 - reject stale parent ..." | Re-trigger Greptile

@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
ade Ignored Ignored Preview Jul 7, 2026 9:10pm

@cursor

cursor Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: bf6bf2bd-2531-4085-89ad-eaf076bbd7de

📥 Commits

Reviewing files that changed from the base of the PR and between 3147479 and f59ecc4.

📒 Files selected for processing (7)
  • apps/ios/ADE/Models/RemoteModels.swift
  • apps/ios/ADE/Services/Database.swift
  • apps/ios/ADE/Services/SyncService.swift
  • apps/ios/ADE/Views/Work/WorkNewChatScreen.swift
  • apps/ios/ADE/Views/Work/WorkPreviews.swift
  • apps/ios/ADE/Views/Work/WorkRootScreen.swift
  • apps/ios/ADETests/ADETests.swift

📝 Walkthrough

Walkthrough

This PR adds shell session launch capability with project scoping to the iOS app. LaneSummary and LaneRow gain a projectId field. SyncService introduces startShellSession/WorkStartShellSessionRequest and a fallbackToActiveProjectScope flag threaded through command sending, queuing, and replay. WorkNewChatScreen adds scope resolution and shell launch UI/state, with corresponding tests.

Changes

Project-scoped shell session launch

Layer / File(s) Summary
Lane and database project identifier plumbing
apps/ios/ADE/Models/RemoteModels.swift, apps/ios/ADE/Services/Database.swift
LaneSummary and LaneRow add an optional projectId; fetchLanesLocked selects and hydrates project_id.
SyncService shell session API and scope-aware command routing
apps/ios/ADE/Services/SyncService.swift
Adds WorkStartShellSessionRequest/startShellSession; extends startCliSession, sendDecodableCommand, sendCommand, enqueueOperation, performCommandRequest, and PendingOperation with fallbackToActiveProjectScope for scope resolution and queued replay.
WorkNewChatScreen shell launch UI and scope resolution
apps/ios/ADE/Views/Work/WorkNewChatScreen.swift, apps/ios/ADE/Views/Work/WorkRootScreen.swift, apps/ios/ADE/Views/Work/WorkPreviews.swift
Adds WorkProjectCommandScope/workShellProjectScope, activeProjectRootPath input, shell busy/queued state, chip UI, launchShell(in:), and shell tool-type mapping; call sites pass activeProjectRootPath.
Tests for shell scope resolution and queued start behavior
apps/ios/ADETests/ADETests.swift
Adds tests for workStartShellSessionRequest defaults, workShellProjectScope matching rules, and queued/failing startShellSession async behavior.

Estimated code review effort: 4 (Complex) | ~60 minutes

Possibly related PRs

  • arul28/ADE#255: Both PRs implement the “start CLI session” flow end-to-end, including SyncService.startCliSession/startShellSession plumbing and queued/persisted replay for work.startCliSession.
  • arul28/ADE#574: Both PRs modify SyncService.swift's queued/pending-remote-command behavior, specifically sendCommand/command request handling and queued operation retention/replay.

Suggested labels: ios

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main change: adding a mobile Shell launcher/button to work lanes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ade/ok-start-skill-plan-skill-77039123

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@arul28

arul28 commented Jul 7, 2026

Copy link
Copy Markdown
Owner Author

@copilot review but do not make fixes

Comment thread apps/ios/ADE/Views/Work/WorkNewChatScreen.swift
@arul28

arul28 commented Jul 7, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 04607204c1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/ios/ADE/Views/Work/WorkNewChatScreen.swift Outdated
@arul28

arul28 commented Jul 7, 2026

Copy link
Copy Markdown
Owner Author

@codex review

Comment thread apps/ios/ADE/Views/Work/WorkNewChatScreen.swift Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c12c170029

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/ios/ADE/Views/Work/WorkNewChatScreen.swift Outdated
@arul28

arul28 commented Jul 7, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5dd7ca1fba

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/ios/ADE/Services/SyncService.swift
@arul28

arul28 commented Jul 7, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@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, add credits to your account and enable them for code reviews in your settings.

Comment thread apps/ios/ADE/Views/Work/WorkNewChatScreen.swift
@cursor

cursor Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Comment thread apps/ios/ADE/Views/Work/WorkNewChatScreen.swift Outdated
Comment thread apps/ios/ADE/Views/Work/WorkNewChatScreen.swift Outdated
@arul28 arul28 merged commit ec97350 into main Jul 7, 2026
33 checks passed
@arul28 arul28 deleted the ade/ok-start-skill-plan-skill-77039123 branch July 7, 2026 21:20
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