Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/codeplane/src/tui/util/clipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const getClipboardy = lazy(async () => {
* the terminal emulator handle the clipboard locally.
*/
function writeOsc52(text: string): void {
if (!process.stdout.isTTY && process.env["CODEPLANE_DISABLE_CLIPBOARD"] !== "1") return
if (!process.stdout.isTTY || process.env["CODEPLANE_DISABLE_CLIPBOARD"] === "1") return
const base64 = Buffer.from(text).toString("base64")
const osc52 = `\x1b]52;c;${base64}\x07`
const passthrough = process.env["TMUX"] || process.env["STY"]
Expand Down
11 changes: 5 additions & 6 deletions packages/desktop/src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2998,12 +2998,11 @@ if (!gotLock) {
app.on("login", (event, _webContents, _request, authInfo, callback) => {
logger.log("main", "login", { host: authInfo.host, isProxy: authInfo.isProxy, realm: authInfo.realm })
if (authInfo.isProxy) return
// Let Electron surface the native credential dialog for non-proxy
// HTTP Basic Auth challenges. Do NOT call preventDefault or pass empty
// credentials — doing so suppresses the OS prompt and sends a blank
// Authorization header, permanently breaking auth_basic connections.
event.preventDefault()
callback()
// Do not call preventDefault or callback here — Electron surfaces the
// native credential dialog automatically for non-proxy HTTP Basic Auth
// challenges. Calling preventDefault suppresses that dialog, and
// calling callback() with no args sends a blank Authorization header,
// which permanently breaks auth_basic connections.
})

app
Expand Down
Loading