Skip to content
Merged
11 changes: 4 additions & 7 deletions build/verification/browser/scenarios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3999,9 +3999,9 @@ const documentViewBase = defaultScenario('documentView');
const documentEditReadiness = { ...documentViewBase.readiness, content: ['Save'] };
const saveDocumentPath = 'mongoClusters.documentView.saveDocument';
const disconnectedDocument = {
reason: 'userDisconnected',
title: 'Disconnected',
detail: 'This tab is disconnected and read-only. You can copy its contents. Open a new tab to run commands.',
reason: 'sessionEnded',
title: 'Session ended',
detail: 'Copy what you need and open a new tab.',
} as const;
const documentEditorName = 'Document Editor: Edit the document in JSON format';
const firstDocumentEdit = {
Expand Down Expand Up @@ -4403,10 +4403,7 @@ const collectionViewLifecycleScenarios = {
kind: 'text',
name: 'the late reply does not change the displayed disconnect reason',
selector: '.disconnectedOverlay',
includes: [
'Disconnected',
'This tab is disconnected and read-only. You can copy its contents. Open a new tab to run commands.',
],
includes: ['Session ended', 'Copy what you need and open a new tab.'],
excludes: ['Retry sign-in'],
},
],
Expand Down
11 changes: 10 additions & 1 deletion docs/ai-and-plans/features/connection-lifecycle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ entries are unpublished drafts and do not represent a shipped release.
It never uses the failed saved authentication or shared authenticated metadata, and does not
promise that anonymous commands are authorized. Normal context-menu Shell startup is unchanged.
Pre-terminal failures use a tree modal; later failures stay in the terminal.
Extraction or a Connection Diagnostics panel entry is under evaluation, not approved (0036).
- **Obsolete recovery actions and ended sessions (0036):** one actionable explanation for a stale
explicit tree action, and one **Session ended** notice for a retired tab. The current connection
still reports its specific failure and repair steps. A single generation cutoff and the lifetime
abort signal keep old work from reaching a new session. Azure Discovery/ARM, retained views and
Show Connection Stats stay in scope.
- **Disconnect and Remove Connection** share a teardown and a tab choice. Saving a change to
connection details uses the disconnected edit flow (0026, 0030), subject to C01's accepted
concurrency limitation (0033). A connected edit starts with **Disconnect and update**; preserve
Expand Down Expand Up @@ -159,6 +165,7 @@ entries are unpublished drafts and do not represent a shipped release.
| [iterations/02-pr1136-copilot-review.md](./iterations/02-pr1136-copilot-review.md) | review |
| [iterations/03-complexity-reduction-analysis.md](./iterations/03-complexity-reduction-analysis.md) | analysis |
| [iterations/03-pr1149-copilot-review.md](./iterations/03-pr1149-copilot-review.md) | review |
| [iterations/04-pr1136-scope-and-test-review.md](./iterations/04-pr1136-scope-and-test-review.md) | analysis |
| [iterations/01-pr1136-final-review.md](./iterations/01-pr1136-final-review.md) | review |
| [iterations/01-pr1136-ux-review.md](./iterations/01-pr1136-ux-review.md) | ux-review |

Expand Down Expand Up @@ -189,7 +196,7 @@ See [decisions.md](./decisions.md):
- 0021 key the in-memory connection fingerprint per extension host.
- 0022 separately unauthenticated Shell entry from failure rows only.
- 0023 retained-view Retry feedback (superseded by 0031).
- 0024 classify explicit stale recovery clicks without disturbing quiet background paths.
- 0024 classify explicit stale recovery clicks without disturbing quiet background paths; 0036 simplifies their feedback.
- 0025 use modal feedback for tree-origin commands, leaving webview feedback unchanged;
descendant expansion is deferred to #1143 until foreground attribution is supported.
- 0026 Update Credentials and Update Connection String require a closed connection; Sign in again keeps the pin; A1 refusal replaced by A2 in 0030.
Expand All @@ -203,6 +210,8 @@ See [decisions.md](./decisions.md):
- 0033 approve the PR #1149 review dispositions: accept C01's concurrency edge, clear removed
Playground selections for C06, leave C08's local editing unchanged, and require manual refresh
after a stopped index-build poll for C10; C12 remains a no-code disposition.
- 0036 simplify obsolete actions and ended bindings, retain useful features and trim duplicate tests;
isolated Shell extraction and placement remain open.

## Timeline

Expand Down
15 changes: 14 additions & 1 deletion docs/ai-and-plans/features/connection-lifecycle/decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ created: 2026-11-19
| 0021 | Key the in-memory connection fingerprint per extension host | Accepted | Operator: use HMAC and verify CodeQL without dismissing a remaining alert | 2026-11-26 | Yes; replaces unkeyed SHA-256 without changing identity rules |
| 0022 | Offer a separately unauthenticated Shell from failure rows only | Accepted | Operator approved the bounded F1 policy in the iteration 2 lead run | 2026-11-27 | Modifies 0015 only for this explicit anonymous entry |
| 0023 | Keep retained-view Retry failure feedback inside the unavailable dialog | Superseded by 0031 | D2 removes the retained-view Retry episode | 2026-11-27 | No automatic operation replay |
| 0024 | Classify explicit stale recovery clicks and explain only failed actions | Accepted | Operator selected F5 option C | 2026-11-27 | Cancellation, disposed work and obsolete replies remain quiet |
| 0024 | Classify explicit stale recovery clicks and explain only failed actions | Accepted (modified by 0036) | Operator selected F5 option C; 0036 simplifies stale-click feedback | 2026-11-27 | Cancellation, disposed work and obsolete replies remain quiet |
| 0025 | Tree-origin failures use modals; webview-origin command feedback stays unchanged | Accepted | Operator confirmed F3 scope | 2026-11-27 | Shared command registrations must preserve origin |
| 0026 | Update Credentials and Update Connection String require a closed connection; Sign in again keeps the pin | Accepted (modified by 0030) | Operator initially chose A1; 0030 replaces it with A2 | 2026-11-29 | Yes; removes the edit-while-connected path |
| 0027 | Views kept open after Disconnect are permanently disabled; Disconnect still asks Close or Keep open | Accepted | Operator chose B2 over B1 (always close): "still ask the user" | 2026-11-29 | Yes; no rebinding or revival of retained views |
Expand All @@ -47,6 +47,7 @@ created: 2026-11-19
| 0033 | Approve the PR1149 review dispositions with explicit complexity tradeoffs | Accepted | C01 option 3; C06 option 2 direction; C08 won't fix; C10 option 2 | 2026-12-01 | Nine code fixes; C01/C08/C12 are no-code dispositions |
| 0034 | Keep manual Refresh as the only way to resume paused index polling after Create | Accepted | Document the workaround; no code change | 2026-12-01 | Clarifies 0033 for pre-review finding N01 |
| 0035 | Keep Dashboard Connection Diagnostics available in disconnected views | Accepted | Not gated like the other tree-command actions | 2026-12-02 | Exception to 0031/0032: diagnosis opens a separate, read-only view |
| 0036 | Simplify obsolete actions and ended bindings without cutting useful features | Accepted | Operator accepted #2/#3 and duplicate-test trimming, not broad feature cuts | 2026-12-02 | Isolated Shell extraction or panel placement remains open |

> Entries below are **semantically** immutable: append new entries rather than rewriting old ones,
> and record reversals as a new entry plus a status change above. Heading text is frozen once
Expand Down Expand Up @@ -606,6 +607,7 @@ rationale is inferred.
## 0024. Classify explicit stale recovery clicks and explain only failed actions

**Accepted** by the operator on 2026-11-27: F5 option C.
The reason-specific modal copy below was superseded by [0036](#0036-simplify-obsolete-actions-and-ended-bindings-without-cutting-useful-features); the quiet paths still apply.

Refresh current tree state and explain actually failed explicit clicks using their real reason:
**This connection was removed. Choose another connection.** or
Expand Down Expand Up @@ -919,3 +921,14 @@ procedure and button are therefore not bound to the view's connection lifetime;
existing diagnose command against the current saved node. If the connection was removed, the
missing-node error applies. This does not restore database access to a retained view, and the other
Dashboard tree-command actions keep their guards.

## 0036. Simplify obsolete actions and ended bindings without cutting useful features

**Accepted direction, not implemented by this decision.** In the [#1136 scope review](./iterations/04-pr1136-scope-and-test-review.md), the operator agreed to proposals 2 and 3 and to trimming duplicate tests. Their criterion was to keep beneficial features that are cheap to maintain.

- Use one actionable explanation for an obsolete explicit recovery action. Keep real repair instructions specific, and keep cancellation and obsolete background work quiet.
- An old binding need only say that its session ended, not preserve each historical reason. Keep the current connection's precise state, cancellation before side effects, dirty-data protection, and recovery after failed removal. No particular replacement data structure was approved.
- Consolidate repeated command-state and dismissal matrices. Retain tests that prove different safety boundaries: wrong identity, command replay, stale work or lost drafts.
- Keep Azure Discovery/ARM in #1136: the operator considers it a good solution already in place. Reject #4 (always closing views) as too aggressive; preserve Close/Keep/Cancel. Reject #5: Show Connection Stats stays because it is useful for debugging.

**Open, not a reversal of 0022:** the operator asked to evaluate extracting the isolated Shell as future work and exposing it in Connection Diagnostics, either instead of or alongside the tree entry. They see diagnostic value but substantial cost for an edge case. No removal, additional entry point or deletion of isolation tests is approved.
Loading
Loading