feat: add official Codex skill and harden task execution
Install and update artemis-use with task diagnostics and plugin guidance. Preserve cross-device file receipts, review canonical reports, guard stage transitions and reduce small history summaries. Improve exploration lifecycle, request recovery and browser live connections.
This commit is contained in:
1 parent
2328a4df0c
commit
e1ea099592
128 files changed
+4944
-700
No files matched your search
+14
-1
@@ -1,4 +1,5 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { TestBed, fakeAsync, tick } from '@angular/core/testing';
|
||||
import { UI_READ_TIMEOUT_MS } from '../../core/http-timeouts';
|
||||
import { provideHttpClient } from '@angular/common/http';
|
||||
import { HttpTestingController, provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import { ModelSettingsComponent } from './model-settings.component';
|
||||
@@ -17,6 +18,18 @@ describe('持久化模型与功能设置', () => {
|
||||
});
|
||||
afterEach(() => http.verify());
|
||||
|
||||
it('配置请求排队超时后退出加载状态,不会发送保存请求', fakeAsync(() => {
|
||||
const fixture = TestBed.createComponent(ModelSettingsComponent);
|
||||
fixture.detectChanges();
|
||||
const request = http.expectOne('/api/system/model-settings');
|
||||
tick(UI_READ_TIMEOUT_MS);
|
||||
expect(request.cancelled).toBeTrue();
|
||||
expect(fixture.componentInstance.loading()).toBeFalse();
|
||||
expect(fixture.componentInstance.error()).toBeTruthy();
|
||||
expect(fixture.componentInstance.valid()).toBeFalse();
|
||||
http.expectNone('/api/system/model-settings');
|
||||
}));
|
||||
|
||||
it('加载配置后保留密钥,保存新模型且不发送空密钥', () => {
|
||||
const fixture = TestBed.createComponent(ModelSettingsComponent);
|
||||
fixture.detectChanges();
|
||||
|
||||
Reference in new issue
Block a user