Skip to content

[3/7] feat: isolate subagent edits and review task changes - #133

Draft
BIackFIame wants to merge 38 commits into
howdeploy:mainfrom
BIackFIame:backlog/2-worktrees
Draft

BIackFIame wants to merge 38 commits into
howdeploy:mainfrom
BIackFIame:backlog/2-worktrees

Conversation

@BIackFIame

@BIackFIame BIackFIame commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Part 3/7 of the CanvasTTY agent-workflow series. Subagents can work in separate worktrees; task changes have review entry points, and checkpoints can be previewed before a confirmed restore. Shared Git metadata and replacement-object defenses accompany the first usable worktree/checkpoint implementation.

Review scope and dependencies

Depends on: #132.

This is a cumulative upstream PR: GitHub's Files changed tab includes earlier unmerged parts because all PRs target upstream main; cross-fork stacked bases are unsupported. Review this part in the isolated predecessor-to-head diff. The intended merge order follows the numbered series; do not merge a later part independently of its predecessors.

The Environments plugin provides grouped collection, acceptance and cleanup.

Validation and current blockers

Tested feature head: 2b988218680596776177862ef2fb53daa5549c6b. Local helpers, typecheck, build and secret audit passed; full suite: 1,899 passed, 8 skipped, zero failures. Historical fork CI passed on macOS, Linux and Windows using the exact candidate tree under a temporary workflow overlay. That overlay is not included here.

Draft: merge preview against updated upstream 6faadcdc found conflicts in src/renderer/src/features/workspace/WorkspaceCanvas.tsx. These historical results do not validate a conflict-resolved integration with current main. Preserve the newly accepted material/terminal-link behavior, resolve the overlaps, and rerun checks before marking ready.

Earlier live fixtures accepted one selected file in one commit, cleaned two finished worktrees and restored a checkpoint. This does not establish large-diff performance or complete real-world acceptance on every OS.

Series order

  1. macOS clipboard
  2. Orchestration, reviews and budgets — Draft
  3. Worktrees and checkpoints — Draft
  4. Timeline, usage and attention — Draft
  5. Network policies and temporary secrets — Draft
  6. Workspace context and navigation — Draft
  7. Experimental routing, handoff and remote controls — Draft

Parts 2–7 are cumulative Draft PRs against upstream main, with an isolated layer diff in each description. Their tested feature heads currently conflict with newer upstream changes; integration and fresh checks are required before readiness. Part 7 also retains its independent experimental acceptance gate.

@BIackFIame

Copy link
Copy Markdown
Contributor Author

@codex review

Please review this PR for correctness, regressions and security issues. Review only; post findings on GitHub without changing code.

This is part 3/7 of a cumulative series. Focus on changes introduced after predecessor 72accd26e8451e187de4436b7d51a4b22a6a1eaf through current head 2b988218680596776177862ef2fb53daa5549c6b, including their interactions with the inherited code. The isolated layer diff is linked in the PR description. Known merge conflicts with newer main are already documented; look for substantive code defects in addition to those integration blockers.

howdeploy added a commit that referenced this pull request Oct 12, 2026
This integrates the six contributions accepted during the maintainer's DEV review, together with the maintainer's local UI and minimap fixes. Rejected orchestration features, including #133, are excluded entirely.

## Included contributions and credit

- #125 by @tab11pm: read-only file cards, directory browsing, and richer Markdown/code previews.
- #130 by @SaneSanders: image/material remarks and handoff to an existing agent session.
- #131 by @BIackFIame: macOS clipboard/edit context menus for text fields.
- #138 by @pepechka-kun: usage history, measured quota changes, local-log evidence, and explicit attribution uncertainty.
- #139 by @CLOSETTTY: interactive mascots and the Codex mascot creation workflow.
- #140 by @teo-nex: the macOS node-pty file-descriptor leak fix, patch delivery, and resource diagnostics.

Thank you to all six contributors. Each original PR head and its author commits are retained in Git history through separate merge commits. This integration must use a merge commit rather than squash or rebase.

## Maintainer patches

- Fit the minimap overview to the camera viewport and all canvas objects together, with padding; retain stable drag coordinates during a gesture.
- Keep the material handoff icon fixed in the header, remove the count beneath it, and place equally sized Cancel/Send actions at the bottom right of the handoff dialog.
- Split usage history into five left-side sections: conditional estimate, quotas, agents, local-log tokens, and source state. Use pages within sections to fit the window without a long scrolling report.
- Resolve shared App/IPC/preload integrations while retaining the file, handoff, and usage-history flows.
- Retain the approved DEV dependency set and Electron 43.7.7; reuse the matching lockfile with patch-package 8.0.1.

## Scope

#132, #133, #134, #135, and #137 are not included. #136 is also excluded pending the previously requested UI/UX redesign. No commits from that cumulative orchestration series are ancestors of this branch.

Material handoff in #130 does not automatically apply a saved JSON agent report to the material state; this remains the reviewed behavior.

## Validation

- `VITE_BUILD_CHANNEL=DEV npm run build` passed, including the script's TypeScript checks and native-helper build.
- `git diff --check` passed.
- Verified that all six accepted PR heads are ancestors of the integration and all six excluded PR heads are not.
- Verified that the three approved local UI/minimap implementations match the selected DEV copy.
- Added minimap geometry coverage for distant camera positions and adapted usage-history fixtures for section navigation.
- The maintainer manually reviewed the accepted features in the earlier combined DEV build. The final integration without #133 has not received another manual UI pass. Automated tests and macOS/Windows runtime checks were not run locally for this integration.
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