feat(copilot): fix context / json parsing edge cases (#1542)

* Add get ops examples

* input format incorrectly created by copilot should not crash workflow

* fix tool edits triggering overall delta

* fix(db): add more options for SSL connection, add envvar for base64 db cert (#1533)

* fix trigger additions

* fix nested outputs for triggers

* add condition subblock sanitization

* fix custom tools json

* Model selector

* fix response format sanitization

* remove dead code

* fix export sanitization

* Update migration

* fix import race cond

* Copilot settings

* fix response format

* stop loops/parallels copilot generation from breaking diff view

* fix lint

* Apply suggestion from @greptile-apps[bot]

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* fix tests

* fix lint

---------

Co-authored-by: Siddharth Ganesan <siddharthganesan@gmail.com>
Co-authored-by: Waleed <walif6@gmail.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Vikhyath Mondreti
2025-10-03 19:08:57 -07:00
committed by GitHub
parent 4da355d269
commit c42d2a32f3
23 changed files with 8301 additions and 451 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE "settings" ADD COLUMN "copilot_enabled_models" jsonb DEFAULT '{}' NOT NULL;

File diff suppressed because it is too large Load Diff

View File

@@ -666,6 +666,13 @@
"when": 1759182244521,
"tag": "0095_cheerful_albert_cleary",
"breakpoints": true
},
{
"idx": 96,
"version": "7",
"when": 1759534968812,
"tag": "0096_tranquil_arachne",
"breakpoints": true
}
]
}

View File

@@ -375,6 +375,9 @@ export const settings = pgTable('settings', {
showFloatingControls: boolean('show_floating_controls').notNull().default(true),
showTrainingControls: boolean('show_training_controls').notNull().default(false),
// Copilot preferences - maps model_id to enabled/disabled boolean
copilotEnabledModels: jsonb('copilot_enabled_models').notNull().default('{}'),
updatedAt: timestamp('updated_at').notNull().defaultNow(),
})