Skip to content

Commit 47fcbfa

Browse files
committed
style: apply dart format after the rebase onto main
Formatter output only: collapses a few single-argument calls now that the surrounding lines changed. No behaviour or logic change.
1 parent 1984916 commit 47fcbfa

8 files changed

Lines changed: 18 additions & 30 deletions

File tree

app/lib/app/router.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ final routerProvider = Provider<GoRouter>((ref) {
5757
path: 'settings',
5858
builder: (_, _) => const SettingsScreen(),
5959
),
60-
GoRoute(
61-
path: 'closed',
62-
builder: (_, _) => const ClosedScreen(),
63-
),
60+
GoRoute(path: 'closed', builder: (_, _) => const ClosedScreen()),
6461
GoRoute(
6562
path: 'ports',
6663
builder: (_, s) =>

app/lib/desktop/chat/closed_sidebar_view.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ class ClosedSidebarView extends ConsumerStatefulWidget {
3030
const ClosedSidebarView({super.key});
3131

3232
@override
33-
ConsumerState<ClosedSidebarView> createState() =>
34-
_ClosedSidebarViewState();
33+
ConsumerState<ClosedSidebarView> createState() => _ClosedSidebarViewState();
3534
}
3635

3736
class _ClosedSidebarViewState extends ConsumerState<ClosedSidebarView> {

app/lib/desktop/chat/desktop_sidebar.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,8 +1242,8 @@ class _Footer extends ConsumerWidget {
12421242
color: showClosed ? theme.colorScheme.primary : null,
12431243
visualDensity: VisualDensity.compact,
12441244
constraints: const BoxConstraints(minWidth: 32, minHeight: 32),
1245-
onPressed: () => ref.read(sidebarClosedProvider.notifier).state =
1246-
!showClosed,
1245+
onPressed: () =>
1246+
ref.read(sidebarClosedProvider.notifier).state = !showClosed,
12471247
),
12481248
if (onOpenSettings != null)
12491249
IconButton(

app/lib/ui/home/session_tile.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,7 @@ class SessionTile extends ConsumerWidget {
179179
final confirmed = await _confirmQuit(context);
180180
if (!confirmed) return false;
181181
try {
182-
await ref
183-
.read(storeControllerProvider.notifier)
184-
.closeSession(session.id);
182+
await ref.read(storeControllerProvider.notifier).closeSession(session.id);
185183
return true;
186184
} catch (e) {
187185
status.failure(

app/test/desktop/chat/pr_bar_test.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,9 +622,7 @@ void main() {
622622
expect(find.textContaining('Delete the local branch'), findsNothing);
623623
});
624624

625-
testWidgets('says sessions are closed, after the removal', (
626-
tester,
627-
) async {
625+
testWidgets('says sessions are closed, after the removal', (tester) async {
628626
// The server removes the worktree first and *closes* live sessions
629627
// (SPEC-29) rather than stopping them; the dialog claimed the reverse order
630628
// and the wrong verb.

app/test/desktop/chat/selected_session_test.dart

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ void main() {
136136
tree: WorkspaceController.seedWorkspace(),
137137
);
138138

139-
testWidgets('on a board the tab ✕ unpins and never closes', (
140-
tester,
141-
) async {
139+
testWidgets('on a board the tab ✕ unpins and never closes', (tester) async {
142140
final (conn, groups) = await runClose(tester, board(), (ref) {
143141
final state = ref.read(workspaceControllerProvider);
144142
final tab = activeTab(state)!;
@@ -153,17 +151,18 @@ void main() {
153151
);
154152
});
155153

156-
testWidgets('in a worktree group the tab ✕ closes the session (unchanged)', (
157-
tester,
158-
) async {
159-
final (conn, _) = await runClose(tester, worktree(), (ref) {
160-
final state = ref.read(workspaceControllerProvider);
161-
final tab = activeTab(state)!;
162-
closeTabAndSession(ref, state.activeSplitId, tab.id, tab.sessionId);
163-
});
154+
testWidgets(
155+
'in a worktree group the tab ✕ closes the session (unchanged)',
156+
(tester) async {
157+
final (conn, _) = await runClose(tester, worktree(), (ref) {
158+
final state = ref.read(workspaceControllerProvider);
159+
final tab = activeTab(state)!;
160+
closeTabAndSession(ref, state.activeSplitId, tab.id, tab.sessionId);
161+
});
164162

165-
expect(conn.sent.where((m) => m['kind'] == 'session.close').length, 1);
166-
});
163+
expect(conn.sent.where((m) => m['kind'] == 'session.close').length, 1);
164+
},
165+
);
167166

168167
testWidgets('⌘⇧W agrees with the ✕ on a board (one shared path)', (
169168
tester,

server/src/adapters/acp.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,4 +1574,3 @@ test("start() leaves the agent's model alone when it already matches, or is unkn
15741574
assert.ok(statuses.includes("idle"), "the session still started");
15751575
await a2.kill();
15761576
});
1577-

server/src/manager.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2510,5 +2510,3 @@ test("closeSession reaps even when the agent's close() never settles", async ()
25102510
store.close();
25112511
}
25122512
});
2513-
2514-

0 commit comments

Comments
 (0)