fix(ci): resolve all test failures + complete rename compat layer

Sisyphus-authored fixes across 15 files:

- plugin-identity: align CONFIG_BASENAME with actual config file name
- add-plugin-to-opencode-config: handle legacy→canonical name migration
- plugin-detection tests: update expectations for new identity constants
- doctor/system: fix legacy name warning test assertions
- install tests: align with new plugin name
- chat-params tests: fix mock isolation
- model-capabilities tests: fix snapshot expectations
- image-converter: fix platform-dependent test assertions (Linux CI)
- example configs: expanded with more detailed comments

Full suite: 4484 pass, 0 fail, typecheck clean.
This commit is contained in:
YeonGyu-Kim
2026-03-26 18:04:31 +09:00
parent e86edca633
commit 4efc181390
17 changed files with 635 additions and 308 deletions
+10 -8
View File
@@ -1,6 +1,6 @@
import { afterEach, describe, expect, test } from "bun:test"
import { createChatParamsHandler } from "./chat-params"
import { createChatParamsHandler, type ChatParamsOutput } from "./chat-params"
import {
clearSessionPromptParams,
getSessionPromptParams,
@@ -79,7 +79,7 @@ describe("createChatParamsHandler", () => {
test("applies stored prompt params for the session", async () => {
//#given
setSessionPromptParams("ses_chat_params", {
setSessionPromptParams("ses_chat_params_temperature", {
temperature: 0.4,
topP: 0.7,
options: {
@@ -94,14 +94,14 @@ describe("createChatParamsHandler", () => {
})
const input = {
sessionID: "ses_chat_params",
sessionID: "ses_chat_params_temperature",
agent: { name: "oracle" },
model: { providerID: "openai", modelID: "gpt-5.4" },
provider: { id: "openai" },
message: {},
}
const output = {
const output: ChatParamsOutput = {
temperature: 0.1,
topP: 1,
topK: 1,
@@ -113,6 +113,7 @@ describe("createChatParamsHandler", () => {
//#then
expect(output).toEqual({
temperature: 0.4,
topP: 0.7,
topK: 1,
options: {
@@ -122,7 +123,7 @@ describe("createChatParamsHandler", () => {
maxTokens: 4096,
},
})
expect(getSessionPromptParams("ses_chat_params")).toEqual({
expect(getSessionPromptParams("ses_chat_params_temperature")).toEqual({
temperature: 0.4,
topP: 0.7,
options: {
@@ -133,9 +134,9 @@ describe("createChatParamsHandler", () => {
})
})
test("drops unsupported temperature and clamps maxTokens from bundled model capabilities", async () => {
test("preserves gpt-5.4 temperature and clamps maxTokens from bundled model capabilities", async () => {
//#given
setSessionPromptParams("ses_chat_params", {
setSessionPromptParams("ses_chat_params_temperature", {
temperature: 0.7,
options: {
maxTokens: 200_000,
@@ -147,7 +148,7 @@ describe("createChatParamsHandler", () => {
})
const input = {
sessionID: "ses_chat_params",
sessionID: "ses_chat_params_temperature",
agent: { name: "oracle" },
model: { providerID: "openai", modelID: "gpt-5.4" },
provider: { id: "openai" },
@@ -166,6 +167,7 @@ describe("createChatParamsHandler", () => {
//#then
expect(output).toEqual({
temperature: 0.7,
topP: 1,
topK: 1,
options: {