Skip to content

Instantly share code, notes, and snippets.

View iRonin's full-sized avatar

Cyprian Kowalczyk iRonin

View GitHub Profile
@iRonin
iRonin / pr-2959.patch
Created April 15, 2026 15:41
PR #2959: improve models.json UX — skip redundant apiKey + survive registerProvider()
diff --git a/packages/coding-agent/src/core/model-registry.ts b/packages/coding-agent/src/core/model-registry.ts
index 5a93b438..45ad4f8a 100644
--- a/packages/coding-agent/src/core/model-registry.ts
+++ b/packages/coding-agent/src/core/model-registry.ts
@@ -463,10 +463,7 @@ export class ModelRegistry {
}
private validateConfig(config: ModelsConfig): void {
- const builtInProviders = new Set<string>(getProviders());
-
@iRonin
iRonin / pr-2957.patch
Created April 15, 2026 15:41
PR #2957: regenerate models.generated.ts from live APIs
diff --git a/packages/ai/src/models.generated.ts b/packages/ai/src/models.generated.ts
index f28b6933..b63b25a1 100644
--- a/packages/ai/src/models.generated.ts
+++ b/packages/ai/src/models.generated.ts
@@ -4359,24 +4359,6 @@ export const MODELS = {
contextWindow: 204800,
maxTokens: 131072,
} satisfies Model<"openai-completions">,
- "MiniMaxAI/MiniMax-M2.7": {
- id: "MiniMaxAI/MiniMax-M2.7",
@iRonin
iRonin / pr-2962.patch
Created April 15, 2026 13:06
PR #2962: add /clone command to duplicate current session
diff --git a/packages/coding-agent/src/core/agent-session-runtime.ts b/packages/coding-agent/src/core/agent-session-runtime.ts
index 58e1fd57..b9866ed7 100644
--- a/packages/coding-agent/src/core/agent-session-runtime.ts
+++ b/packages/coding-agent/src/core/agent-session-runtime.ts
@@ -248,6 +248,65 @@ export class AgentSessionRuntime {
return { cancelled: false, selectedText };
}
+ /**
+ * Fork the current session at the current leaf position ("clone session").
@iRonin
iRonin / pr-2958.patch
Created April 15, 2026 13:06
PR #2958: fix model-resolver :variant sort order
diff --git a/packages/coding-agent/src/core/model-resolver.ts b/packages/coding-agent/src/core/model-resolver.ts
index 1825274a..8b9a5cbf 100644
--- a/packages/coding-agent/src/core/model-resolver.ts
+++ b/packages/coding-agent/src/core/model-resolver.ts
@@ -131,12 +131,24 @@ function tryMatchModel(modelPattern: string, availableModels: Model<Api>[]): Mod
const datedVersions = matches.filter((m) => !isAlias(m.id));
if (aliases.length > 0) {
- // Prefer alias - if multiple aliases, pick the one that sorts highest
- aliases.sort((a, b) => b.id.localeCompare(a.id));
@iRonin
iRonin / HOWTO.md
Created February 19, 2019 14:04 — forked from cvan/HOWTO.md
get all URLs of all network requests made on a web page from the Chrome Dev Tools (from an exported HAR)

Setup

Using Homebrew on Mac OS X:

brew install jq

Add these aliases to your profile (e.g., ~/.zshrc, ~/.bashrc, ~/.profile, etc.):

alias hurlp='pbpaste | jq ".log.entries" | tee >(jq --raw-output "[.[] | .request.url] | sort | unique | .[]")'

alias hurld='pbpaste | jq ".log.entries" | jq --raw-output "[.[] | .request.url] | sort | unique | .[]" | tee >(xargs -n 1 curl -O $1)'

//////////////////////push_notifications.js///////////////////////
var apns = function(){
var pref = require('preferences').preferences;
Titanium.Network.registerForPushNotifications({
types: [
Titanium.Network.NOTIFICATION_TYPE_BADGE,
Titanium.Network.NOTIFICATION_TYPE_ALERT
],
success:function(e)
//////////////////////push_notifications.js///////////////////////
var apns = function(){
var pref = require('preferences').preferences;
Titanium.Network.registerForPushNotifications({
types: [
Titanium.Network.NOTIFICATION_TYPE_BADGE,
Titanium.Network.NOTIFICATION_TYPE_ALERT
],
success:function(e)
@iRonin
iRonin / README.md
Created August 9, 2014 10:47 — forked from xslim/README.md

Installation

  • Install hcl https://github.com/zenhob/hcl
  • cd MyProject
  • curl -L https://gist.github.com/raw/3760898/commit-msg.sh > .git/hooks/commit-msg
  • chmod +x .git/hooks/commit-msg
  • hcl tasks
  • Note ProjectID & TaskID
  • git config hooks.harvesttask "ProjectID TaskID"
  • Example: git config hooks.harvesttask "2551232 1441578"
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/ember.js/1.0.0-rc.3/ember.js"></script>
<script src="//maps.googleapis.com/maps/api/js?sensor=false"></script>
</head>
<body>
<script>
App.AccountEditRoute = Ember.Route.extend({
setupController: function(controller) {
controller.set('content', this.get('currentUser'));
}
});