SShortSingh.
Back to feed

Claude Code's shell sandbox: what it blocks, and the gaps it leaves open

0
·4 views

Claude Code includes an OS-enforced sandbox for shell commands, but it is disabled by default. When enabled, it restricts writes to the working directory and designated temp or added paths, while reads remain broad unless denyRead rules are added. Network access is routed through a local proxy with an allowed-domains list that starts empty, so nothing leaves by default. The sandbox does not cover tools such as Read, Edit, WebFetch, MCP servers, and hooks, which are governed by permission rules instead, and the article recommends testing the configuration rather than assuming it works.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Use pagehide and persisted to separate pausing from cleanup in browser pages

A page hidden during history navigation may be kept in the back/forward cache and restored later, so a blanket pagehide cleanup can wipe state the restored page needs. The recommended approach is to register a window-level pagehide listener and check event.persisted to decide between two paths. When persisted is true, work is paused while resumable state such as an unfinished draft is kept, and when it is false or absent, state is released through the cleanup path. The example code returns early on the persisted branch so cleanup cannot run afterward, and it returns an uninstaller function for components that may mount more than once. Tests with a window-like dependency can verify the application's branching but cannot confirm real bfcache eligibility, which the browser decides. The author notes that this pattern is meant for history-navigation lifecycle policy rather than universal shutdown handling.

0
ProgrammingDEV Community ·

Why 2D Pixel Art Sprites Show Seams in Godot 4 and Unity, and How Atlas Packing Fixes Them

Pixel-art sprites packed edge-to-edge on a sprite sheet can show hairline seams or dark fringes when the camera scrolls at fractional positions, sprites scale, or tilemaps rotate. The cause is GPU texture sampling, where floating-point UV coordinates can land just across a texel boundary and pull in pixels from neighboring sprites or transparent gutters. The article recommends a fix combining 1px edge extrusion, which duplicates each sprite's outer edges and corners into the padding, with MaxRects-BSSF atlas packing. It also notes that Godot and Unity use different origin conventions, so rectangles must be converted to avoid vertically flipped slices. Finally, it describes generating Godot 4 .tres SpriteFrames resources and Unity or Phaser JSON descriptors from a browser-based packer.

0
ProgrammingDEV Community ·

Fixing Shopify Merchant Center and WCAG 2.2 Issues With Native Liquid Code

The article explains how Shopify stores can resolve Google Merchant Center warnings about shipping details, return policies, and variant pricing without installing paid apps. It recommends adding custom Liquid snippets that output product schema using the selected variant's price and that match shipping and refund policies to store settings. It also covers accessibility compliance under the European Accessibility Act, arguing that third-party JavaScript overlays do not fix underlying markup problems. The author suggests testing with Google's Rich Results Test, a keyboard-only navigation check, and automated audit tools before publishing a theme. The piece also offers a paid manual review service for store owners who want their domains inspected.

0
ProgrammingDEV Community ·

APIC v2: Free Offline Image Editor With 16-bit Color, RAW Support and GPU Acceleration

APIC v2 is a free desktop image editor, converter and compressor that runs entirely offline, with no account, cloud upload or telemetry. It performs edits using 16-bit floating-point math, preserves ICC color profiles such as Adobe RGB and Display P3, and can develop RAW files. Its Format Advisor measures JPEG, WebP, AVIF and PNG encodings to recommend the smallest export that still looks identical to the original. The app also detects and decodes GPS and other metadata in photos, warning users and offering removal before export.