Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/coding-agent/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
- The bash tool's visualization keeps a one-line awk, jq, regex or other embedded program highlighted where it appears in the command; only multi-line programs move below it behind a `⟦awk ↓⟧`-style chip.

### Fixed
- `omp --help` no longer lists the unsupported `ANTHROPIC_SEARCH_BASE_URL` override ([#N](https://github.com/can1357/oh-my-pi/pull/N) by [@eggpeat](https://github.com/eggpeat))
- Images reach each request as the receiving model needs them: after switching to a text-only model, queued and earlier images are described by the vision model (once per image, reused across turns and resumes); after switching to a vision model, they are sent as images again with no stale description. Compaction and branch summaries and advisor reviews carry the descriptions whenever their model or the session's cannot see images, and a failed description is retried instead of sticking ([#20369](https://github.com/can1357/oh-my-pi/pull/20369) by [@taibenvenuti](https://github.com/taibenvenuti))
- Edit cards in hashline, sloppy and magic modes name their target file again instead of `…`: while a call streams, and in the Agent Hub transcript of a subagent
- Extensions importing `@oh-my-pi/omptype` resolve to the host's copy, so they load offline and after Bun prunes the package's cached registry manifest; the bare import used to fall back to the install cache and fail the extension load
Expand Down
1 change: 0 additions & 1 deletion packages/coding-agent/src/cli/help-extra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export function getExtraHelpText(): string {
SOFYA_API_KEY - Sofya web search
FIRECRAWL_API_KEY - Firecrawl web search + fetch reader backend
ANTHROPIC_SEARCH_API_KEY - Anthropic web search (override; isolates search from main ANTHROPIC_API_KEY)
ANTHROPIC_SEARCH_BASE_URL - Anthropic web search base URL (override; pairs with ANTHROPIC_SEARCH_API_KEY)
TYPESAFE_API_KEY - TypeSafe System One judgments (auto thinking, unexpected-stop, AI staging, eval judge())

${chalk.dim("# Configuration")}
Expand Down
20 changes: 20 additions & 0 deletions packages/coding-agent/test/cli-help.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { describe, expect, test } from "bun:test";
import * as path from "node:path";
import { getExtraHelpText } from "../src/cli/help-extra";

const docsPath = path.resolve(import.meta.dir, "../../../docs/environment-variables.md");

/** Names of the variables the root help lists, as written in its "NAME - description" lines. */
function advertisedEnvVars(): string[] {
const help = getExtraHelpText();
const names = [...help.matchAll(/^\s{2}([A-Z][A-Z0-9_]+)\s+-\s/gm)].map(match => match[1]);
return [...new Set(names)];
}

describe("root CLI help environment variables", () => {
test("advertises only variables that the environment variable reference documents", async () => {
const docs = await Bun.file(docsPath).text();
const undocumented = advertisedEnvVars().filter(name => !docs.includes(`\`${name}\``));
expect(undocumented).toEqual([]);
});
});