Start Debugging

Daily notes on .NET, C#, EF Core, MAUI, Blazor, and Flutter - for developers who ship.

2026-11-26 ai-agentscodexssh

How to Stop a Coding Agent Desktop App From Using Your Forwarded SSH Agent Keys on Remote Hosts

The Codex app inside ChatGPT Desktop links any forwarded SSH agent on a remote host to a stable socket that its long-lived app server and every agent command inherit. How the link works, how to check whether your keys are exposed, a dedicated ssh_config alias with ForwardAgent no and IdentityAgent none, why turning forwarding off does not cut a link that is still live, and how to scope keys with ssh-add -c, -t and -h when the agent really needs git.

Why can't I cast IDisplayVM<Derived> to IDisplayVM<Base> in C#, and when does out variance fix it?

A class that implements IDisplayVM<DiseaseDTO> does not implement IDisplayVM<IDTO>, so the assignment fails with CS0266, 'as' returns null and an explicit cast throws InvalidCastException. Marking T as 'out' fixes it only if T never appears in an input position; with ICollection<T> or a setter you get CS1961. Reproduced on .NET 11 with the four designs that actually work, benchmarked.
2026-11-25 ai-agentsllmcodex

How to Run Codex CLI Against Google Cloud Vertex AI with model_provider = "gcp"

Codex CLI 0.165.0 added a built-in gcp provider that sends Responses API traffic to Vertex AI and bills your Google Cloud project. How to set it up in ~/.codex/config.toml, authenticate with ADC or a credential file, pick a model the provider actually exposes, run it headless in CI, and avoid the gotchas: project-local config is ignored, the global location, the missing hosted tools, and the background models memories need. Codex CLI 0.167.0+.

Why does EF Core forbid concurrent reads on one DbContext, even with AsNoTracking?

A read is not read-only inside a DbContext: every query mutates the shared connection, its open counter, the command and reader state, and for tracking queries the identity map. With thread-safety checks turned off on EF Core 11.0.0, parallel AsNoTracking queries on one context still failed up to 57 times in 1,000 rounds, and tracking queries left a corrupted change tracker in all but one of the rounds that finished.
Page 1 of 121 Next ›