Restore ACP settings save/apply actions

This commit is contained in:
Haitao Pan 2026-03-23 23:43:05 +08:00
parent d30072ad31
commit 2aecd71199
2 changed files with 11 additions and 1 deletions

View File

@ -171,7 +171,9 @@ class _SettingsPageState extends State<SettingsPage> {
_navigationContext = controller.settingsNavigationContext;
final settings = controller.settingsDraft;
final showingDetail = _detail != null;
final showGlobalApplyBar = _tab != SettingsTab.gateway;
final showGlobalApplyBar =
_tab != SettingsTab.gateway ||
_integrationSubTab == _GatewayIntegrationSubTab.acp;
return SingleChildScrollView(
padding: const EdgeInsets.fromLTRB(32, 32, 32, 8),
child: Column(

View File

@ -240,6 +240,14 @@ void main() {
expect(find.text('Claude'), findsOneWidget);
expect(find.text('Gemini'), findsOneWidget);
expect(find.textContaining('ws://127.0.0.1:9001'), findsWidgets);
expect(
find.byKey(const ValueKey('settings-global-save-button')),
findsOneWidget,
);
expect(
find.byKey(const ValueKey('settings-global-apply-button')),
findsOneWidget,
);
});
testWidgets('SettingsPage gateway sections can collapse individually', (