4 Commits
Author SHA1 Message Date
f83293d1de refactor: remove tests that only restate constants or declarations (#7984)
These tests exercise no production code path: each compares a package-level
constant, map or slice against a literal copy of its own declaration, so the
only way to make one fail is to edit the test in the same commit as the
source. That makes them a rename tax rather than a safety net.

Removed:
- cmd/multica: TestValidIssueStatuses (mirrors validIssueStatuses),
  TestLoadConfigAllowNoAgentsIsOptIn (asserts the bool zero value that the
  language already guarantees)
- internal/integrations/channel: TestCapability_BitsDistinct (iota block)
- internal/integrations/wecom: TestUnsupportedReceipt_DoesNotClaimTextOnly
- internal/daemon: TestAnnotationAvoidsPersistedRowGuards
- internal/metrics: TestBusinessMetricLabelsRejectHighCardinalityNames
- internal/service: TestChatQuickActionsPromptsNameNoLanguage
- internal/events: TestPublishNoSubscribersIsNoop (asserted nothing at all)
- pkg/agent: TestMcodeBlockedArgsKeepACPTransportStable,
  TestQwenpawBlockedArgs, TestZeroclawBlockedArgs,
  TestClaudeListModelsArgs_Pinned
- pkg/publicapi/v1: TestOperationLedgerPinsSharedScopes,
  TestPluginExtensionsRejectUserCredentialsByContract,
  TestOperationLedgerDeclaresAuditLifecycle

Behavioural tests over the same symbols are kept, including
TestCapability_Has, TestCapability_String, TestValidateIssueStatus and
TestOpenAPICoversCapabilityLedger — the last checks the operation ledger
against the embedded OpenAPI document rather than against itself.

Co-authored-by: Sol-Boy <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-09-03 16:40:25 +08:00
603519d158 MUL-6977: test: remove implementation-only coverage (#7932)
* test: remove implementation-only coverage

Co-authored-by: multica-agent <[email protected]>

* test: remove remaining implementation-only coverage

Co-authored-by: multica-agent <[email protected]>

* test: restore compatibility and fragment navigation coverage

Co-authored-by: multica-agent <[email protected]>

* test: preserve behavioral cleanup contracts

Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: Sol-Boy <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-09-03 13:23:25 +08:00
750fc0cc5a MUL-6655 Fix MCode ACP session startup race (ZIC-199) (#7516)
* Fix MCode ACP session startup race

Co-authored-by: multica-agent <[email protected]>

* fix(agent): only trust transport signals for MCode startup exit

mcodeSessionStartupExited also matched "process exited" / "broken pipe"
anywhere in the error text. A still-running MCode reports session/new
failures as a JSON-RPC *acpRPCError, and session/new is the call that
launches mcpServers, so a real error such as `failed to start MCP
server "filesystem": process exited with code 1` was rewritten into
"MiniMax Code ACP exited before starting a session; ... upgrade
MiniMax Code". That branch returns a fixed string with no %v, so the
original error was dropped, not just relabelled, pointing the member
at the wrong subsystem.

Drop the text matching and keep the transport-level signals. Real
provider exits already arrive as errMcodeProcessExited via
closeAllPending, and a stdin write racing the exit arrives wrapped as
syscall.EPIPE, so no covered case is lost.

Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: multica-agent <[email protected]>
Co-authored-by: J <[email protected]>
2026-08-25 12:30:52 +08:00
de902a4aab MUL-6273: feat(agent): add MiniMax Code ACP runtime (#7035)
* feat(agent): add MiniMax Code ACP runtime

* fix(agent): terminate mcode process trees

* fix(agent): address mcode review blockers

* test(agent): keep mcode model contract API-stable

* fix(migrations): resolve mcode prefix collision

* fix(agent): launch mcode through runtime command

Assisted-by: MiniMax Code

* fix(migrations): renumber mcode migration

Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: Sol-Boy <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-08-18 12:44:27 +08:00