Skip to content

fix: default Haiku 5.5 to its measured context window - #8

Open
LaurensBosscher wants to merge 3 commits into
DevVig:mainfrom
LaurensBosscher:upstream/03-haiku-window
Open

LaurensBosscher wants to merge 3 commits into
DevVig:mainfrom
LaurensBosscher:upstream/03-haiku-window

Conversation

@LaurensBosscher

Copy link
Copy Markdown

Changes

  • Default Haiku 5.5 to its measured 1M window and document Claude Code model access and bare-ID behavior.
  • Update context-window tests.

Stacked after #7: this branch includes earlier commits until their PRs merge.

Verification

  • Context-window unit tests passed in the local fork.
  • Haiku 5.5 was exercised through the bridge.

omp-install and others added 3 commits September 18, 2026 09:47
Deep @oh-my-pi/* imports fail under OMP 18.2.5 extension loading because
host onLoad only rewrites legacy scopes onto in-process shims. Switch to
@earendil-works root imports (proven on this host) and register
claude-opus-5 so existing modelRoles/fallbackChains keep resolving.
…, Fable 5.1, Mythos) + max effort

Derive the picker from the host's anthropic catalog instead of a hardcoded id
list, keeping the 1M/200K variant entries. Measured [1m] entitlements stay in
tables; unmeasured 1M-capable models default to 200K with a -1m alternate.
Map thinking levels onto each model's catalog effort ladder (adds max).
Fix unsuffixed entries throwing when their preferred window has no runtime.
@coderabbitai

coderabbitai Bot commented Oct 27, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8bea48f2-4700-4839-8ff5-563727a988a0
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T09:48:38.717497Z dd1493b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dd1493b51e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/index.ts
import { buildSessionContext } from "@oh-my-pi/pi-coding-agent/session/session-context";
import type { CompactionEntry } from "@oh-my-pi/pi-coding-agent/session/session-entries";
import { compact } from "@oh-my-pi/pi-agent-core/compaction";
import { StringEnum, type AssistantMessage, type AssistantMessageEventStream, type Context, type Model, type SimpleStreamOptions, type Tool, type Usage } from "@earendil-works/pi-ai";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Align supported hosts with legacy-scope imports

These value imports are supplied by the OMP 18 host's legacy-scope rewrite, but neither package.json nor bun.lock installs an @earendil-works/* package, while the published peer contract still accepts @oh-my-pi/* >=16.3.6 and the README declares no newer OMP minimum. On a supported host that predates that rewrite, module evaluation therefore stops here before the provider can register; either retain an import path for those hosts or raise and document the minimum host version.

Useful? React with 👍 / 👎.

Comment thread src/models.ts
const efforts = model.thinking?.efforts;
if (!efforts?.length) return wanted === "xhigh" ? "max" : wanted as ClaudeCodeEffort;
for (let i = rank; i >= 0; i--) {
if (efforts.includes(CLAUDE_CODE_EFFORTS[i])) return CLAUDE_CODE_EFFORTS[i];

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve max for max-capable Sonnet models

When AskClaude is invoked with Sonnet 5 or Sonnet 4.6 and thinking: "max", their catalog ladder can omit max (the new Sonnet 4.6 fixture contains only low/medium/high), so this loop silently returns high. These models are explicitly special-cased above because Claude Code reports their top effort as max, and xhigh is correctly mapped to it, so the newly accepted explicit max option should also remain max rather than being weakened.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant