pedroreyesalvarado commented on PR #8637: URL: https://github.com/apache/texera/pull/8637#issuecomment-6445149910
@kunwp1 — all three follow-ups, plus @Ma77Ball's model-id comment from the first round. `d4b8068e` and `7d3ccda5`, on top of a merge with main. **The uiParameters leak was real and I reproduced it before touching anything**: an `hf_live_...` value passed as a UI parameter appears verbatim in the built prompt. Your diagnosis of why filtering harder would not help is exactly right — the field name says nothing about what a list of attribute/value pairs holds. So the configuration block is gone rather than better filtered, and with it `withoutSecrets`, `withoutCode`, `schemaProperties` and the `OperatorMetadataService` dependency. `analyzeError` no longer takes the properties either. The PR body claimed credentials were kept out behind two independent barriers; that claim is retired, because now there is nothing to keep out. **On the trailing newline, I had reasoned my way into exactly the mirror of the bug I fixed yesterday.** I argued that checking the start of the match was enough, then added the end check for the `n = 1` / `n = 10` case without noticing it made the verdict depend on where the line sat. One trailing newline comes off each snippet now, independently, so the replacement leaves the line's own newline in place. The prompt says the newline is optional instead of leaving it to chance. Worth recording how I got there, since it took two tries: my first test called `matchesWholeLines` with a snippet that was not in the code at all, so it returned true vacuously and proved nothing. The second quoted the **last** line of the file — the one case that already worked, which is what hid this in the first place. Only a line in the middle turns it red. **`fix_type` is gone.** With one legal value it could only refuse a good answer. The test that used to rely on it now says what actually turns a field-name reply away: the occurrence count. **And @Ma77Ball's point from the first round is addressed too.** `AI_FIXER_MODEL` was a compile-time constant holding the alias this deployment's proxy publishes. It now travels the same route as every other workspace setting — `gui.workflow-workspace.ai-fix-model`, overridable by env, served beside `copilotEnabled`. Deliberately not in `llm.conf`, which the frontend never sees: the panel names the model, while the proxy's base URL and master key stay backend-only. I deleted the unit test I wrote for that wiring rather than keep it green. It asserted the value I had just set and that `callModel` was called — true whether or not the id reaches `.chat()`, since `callModel` is the seam every other test stubs. Verified against the running stack instead: the config endpoint serves `aiFixModel`, the browser receives it, and the served bundle calls `.chat(this.config.env.aiFixModel)` with no trace of the constant. That is the eighth test of mine in this PR that passed either way. Suite: 7011 passing. `yarn format:ci`, `yarn build:ci`, `yarn test:ci` and `ng run gui:test-browser` all clean locally. **One ask.** Every push puts the workflows back behind first-time-contributor approval, so none of these commits has been through CI — the run that passed was on `0935e669e`. Could you approve one when you next look? The config change touches `GuiConfig` and `ConfigResource`, so it is the first commit here that CI would exercise beyond the frontend. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
