feat(forge): add the pull request panel and worktree Sessions

The forge panel shows the pull requests a Session created or pushed in a
right-sidebar tab, with a Session header button and branch label, and lets
a new Session start in its own Git worktree from the New Session options
row. The forge bundle ships the panel with the forge registry, the GitHub
provider, the Session bindings, and an isolated worktree service.

The panel listens to the agent-controller/admission stage. It holds the
first message of a Session with a worktree request while it creates and
enters the worktree as Agent maintenance, and refuses messages while the
worktree the Session works in is gone. A failed or stopped creation
returns the message to the composer: the card above the composer shows the
failure, sending again retries with a new branch name, and Continue
without a worktree withdraws the request. A removed worktree can be
checked out again or left for the source checkout. A message that enters
without admission still gets its worktree at the first step proposal.
This commit is contained in:
Yichen Jiang committed 2026-10-20 11:49:51 +08:00
1 parent 7c586e5b4c
commit fc43a2d507
147 files changed
+12984 -135

No files matched your search

@@ -0,0 +1,35 @@
/* Icon-only header entry: the 28px round target of the header's other icon
buttons, with the status dot at the glyph's top-right corner. */
.trigger {
position: relative;
display: inline-flex;
flex: none;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
padding: 0;
border: 0;
border-radius: 28px;
background: transparent;
color: var(--dsw-alias-label-tertiary);
cursor: pointer;
}
.trigger:hover,
.trigger:focus-visible {
color: var(--dsw-alias-label-secondary);
background: var(--dsw-alias-interactive-bg-hover);
}
/* The forge tab is visible. */
.trigger[aria-pressed='true'] {
color: var(--dsw-alias-label-primary);
background: var(--dsw-alias-interactive-bg-active);
}
.dot {
position: absolute;
top: 6px;
right: 6px;
}