insert_commit_in_stack__TDNAeEq

Status: Failed
Started: 3/19 10:48
Execution: 20.7s
Test: 9.6s
2026-03-19 02:48:33.787	DEBUG	native:1	Pochi	pochi v0.6.0
2026-03-19 02:48:33.792	DEBUG	native:7	PochiConfigManager	add workspace config: /root/.pochi/config.jsonc
2026-03-19 02:48:33.895	DEBUG	/$bunfs/pochi:503027	loadAgents	Loaded 4 custom agents (4 valid, 0 invalid)
2026-03-19 02:48:33.896	DEBUG	/$bunfs/pochi:503028	loadSkills	Loaded 2 skills (2 valid, 0 invalid)
2026-03-19 02:48:33.917	DEBUG	/$bunfs/pochi:439288	PochiVendor	JWT is expiring or missing, fetching a new one
2026-03-19 02:48:35.414	DEBUG	/$bunfs/pochi:415701	MCPHub	MCP servers configuration changed via signal:
2026-03-19 02:48:35.414	DEBUG	/$bunfs/pochi:415813	MCPHub	Build MCPHub Status
2026-03-19 02:48:35.580	DEBUG	/$bunfs/pochi:502453	TaskRunner	Starting TaskRunner...
2026-03-19 02:48:35.601	DEBUG	/$bunfs/pochi:454195	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 02:48:35.789	DEBUG	/$bunfs/pochi:496495	generateTaskTitle	Generating task title, old: null, new: You are a developer migrating from Git, maintaining a stacked set of features.
2026-03-19 02:48:47.700	WARN		GitStatus	readGitStatus timed out after 12000ms, returning undefined
2026-03-19 02:48:49.143	DEBUG	/$bunfs/pochi:454195	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 02:48:51.932	DEBUG	/$bunfs/pochi:503113	TaskRunner	Failed:

 TypeError  undefined is not an object (evaluating 'getErrorTrace(error40).map'), 417706, 47, 417706, 47, /$bunfs/root/pochi
error stack:
  • pochi	prettyFormatErrorObj
	/$bunfs/pochi:417706
  • pochi	<anonymous>
	/$bunfs/pochi:417701
  • native	reduce
	native:1
  • pochi	log
	/$bunfs/pochi:417840
  • pochi	onError
	/$bunfs/pochi:500661
  • pochi	makeRequest
	/$bunfs/pochi:432009
  • pochi	async <anonymous>
	/$bunfs/pochi:431766
  • pochi	async step
	/$bunfs/pochi:502582
  • pochi	async run
	/$bunfs/pochi:502459
  • pochi	async <anonymous>
	/$bunfs/pochi:503113
  • native	processTicksAndRejections
	native:7
undefined is not an object (evaluating 'getErrorTrace(error40).map')
Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (8.5.0-2ubuntu10.8).
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
downloading uv 0.9.7 x86_64-unknown-linux-gnu
no checksums to verify
installing to /root/.local/bin
  uv
  uvx
everything's installed!

To add $HOME/.local/bin to your PATH, either restart your shell or run:

    source $HOME/.local/bin/env (sh, bash, zsh)
    source $HOME/.local/bin/env.fish (fish)
Downloading pygments (1.2MiB)
 Downloading pygments
Installed 6 packages in 18ms
============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-8.4.1, pluggy-1.6.0 -- /root/.cache/uv/archive-v0/mdTMLEWwZWxC9sOSRPEmH/bin/python
cachedir: .pytest_cache
rootdir: /tests
plugins: json-ctrf-0.3.5
collecting ... collected 1 item

../../tests/test_final_state.py::test_final_state FAILED                 [100%]

=================================== FAILURES ===================================
_______________________________ test_final_state _______________________________

    def test_final_state():
        repo_dir = "/home/user/repo"
    
        # 1. Check the history is linear and in the correct order: @, C, B, "Add config", A
        result = subprocess.run(
            ["jj", "log", "-T", "description.first_line() ++ '|'", "--no-graph", "-r", "::@"],
            cwd=repo_dir,
            capture_output=True,
            text=True
        )
        assert result.returncode == 0
    
        lines = result.stdout.strip().split('|')
    
        assert len(lines) >= 6, f"Expected at least 6 elements, got: {lines}"
    
        # Working copy should be empty (no description)
        assert lines[0] == "", "Working copy should be an empty commit with no description"
        assert lines[1] == "C", "The parent of the working copy must be C"
        assert lines[2] == "B", "The parent of C must be B"
>       assert lines[3] == "Add config", "The parent of B must be 'Add config'"
E       AssertionError: The parent of B must be 'Add config'
E       assert 'A' == 'Add config'
E         
E         - Add config
E         + A

/tests/test_final_state.py:25: AssertionError
=========================== short test summary info ============================
FAILED ../../tests/test_final_state.py::test_final_state - AssertionError: Th...
============================== 1 failed in 0.04s ===============================